Merge "custom eail widget implementation" into tizen
[platform/core/uifw/eail.git] / eail / eail_priv.h
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; see the file COPYING.LIB.  If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 /**
21  * @file eail_priv.h
22  *
23  * @brief Header for private EAIL data (mostly debugging helper definitions)
24  */
25
26 #ifndef EAIL_PRIV_H
27 #define EAIL_PRIV_H
28
29 /** @brief Color used to log EAIL debug logs*/
30 #define EAIL_LOG_COLOR EINA_COLOR_GREEN
31
32 #ifdef CRITICAL
33 #undef CRITICAL
34 #endif
35 /** @brief Macro used to report 'critical'-level logs*/
36 #define CRITICAL(...) EINA_LOG_DOM_CRIT(_eail_log_dom, __VA_ARGS__)
37 #ifdef ERR
38 #undef ERR
39 #endif
40 /** @brief Macro used to report 'error'-level logs*/
41 #define ERR(...)      EINA_LOG_DOM_ERR(_eail_log_dom, __VA_ARGS__)
42 #ifdef WRN
43 #undef WRN
44 #endif
45 /** @brief Macro used to report 'warning'-level logs*/
46 #define WRN(...)      EINA_LOG_DOM_WARN(_eail_log_dom, __VA_ARGS__)
47 #ifdef INF
48 #undef INF
49 #endif
50 /** @brief Macro used to report 'info'-level logs*/
51 #define INF(...)      EINA_LOG_DOM_INFO(_eail_log_dom, __VA_ARGS__)
52 #ifdef DBG
53 #undef DBG
54 #endif
55 /** @brief Macro used to report 'debug'-level logs*/
56 #define DBG(...)      EINA_LOG_DOM_DBG(_eail_log_dom, __VA_ARGS__)
57
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61
62 extern int _eail_log_dom;
63
64 #ifdef __cplusplus
65 }
66 #endif
67
68 #endif