diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/ecore/src/lib/ecore_directfb/ecore_directfb_private.h | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_directfb/ecore_directfb_private.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_directfb/ecore_directfb_private.h b/libraries/ecore/src/lib/ecore_directfb/ecore_directfb_private.h new file mode 100644 index 0000000..ed34587 --- /dev/null +++ b/libraries/ecore/src/lib/ecore_directfb/ecore_directfb_private.h | |||
@@ -0,0 +1,52 @@ | |||
1 | #ifndef _ECORE_DIRECTFB_PRIVATE_H | ||
2 | #define _ECORE_DIRECTFB_PRIVATE_H | ||
3 | /* eina_log related things */ | ||
4 | |||
5 | extern int _ecore_directfb_log_dom; | ||
6 | |||
7 | #ifdef ECORE_DIRECTFB_DEFAULT_LOG_COLOR | ||
8 | #undef ECORE_DIRECTFB_DEFAULT_LOG_COLOR | ||
9 | #endif /* ifdef ECORE_DIRECTFB_DEFAULT_LOG_COLOR */ | ||
10 | #define ECORE_DIRECTFB_DEFAULT_LOG_COLOR EINA_COLOR_BLUE | ||
11 | |||
12 | #ifdef ERR | ||
13 | # undef ERR | ||
14 | #endif /* ifdef ERR */ | ||
15 | #define ERR(...) EINA_LOG_DOM_ERR(_ecore_directfb_log_dom, __VA_ARGS__) | ||
16 | |||
17 | #ifdef DBG | ||
18 | # undef DBG | ||
19 | #endif /* ifdef DBG */ | ||
20 | #define DBG(...) EINA_LOG_DOM_DBG(_ecore_directfb_log_dom, __VA_ARGS__) | ||
21 | |||
22 | #ifdef INF | ||
23 | # undef INF | ||
24 | #endif /* ifdef INF */ | ||
25 | #define INF(...) EINA_LOG_DOM_INFO(_ecore_directfb_log_dom, __VA_ARGS__) | ||
26 | |||
27 | #ifdef WRN | ||
28 | # undef WRN | ||
29 | #endif /* ifdef WRN */ | ||
30 | #define WRN(...) EINA_LOG_DOM_WARN(_ecore_directfb_log_dom, __VA_ARGS__) | ||
31 | |||
32 | #ifdef CRIT | ||
33 | # undef CRIT | ||
34 | #endif /* ifdef CRIT */ | ||
35 | #define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_directfb_log_dom, __VA_ARGS__) | ||
36 | |||
37 | /* macro for a safe call to DirectFB functions */ | ||
38 | #define DFBCHECK(x ...)\ | ||
39 | {\ | ||
40 | _err = x;\ | ||
41 | if (_err != DFB_OK) {\ | ||
42 | CRIT("%s <%d>:\n\t", __FILE__, __LINE__ );\ | ||
43 | DirectFBErrorFatal( # x, _err );\ | ||
44 | }\ | ||
45 | } | ||
46 | |||
47 | struct keymap | ||
48 | { | ||
49 | char *name; | ||
50 | char *string; | ||
51 | }; | ||
52 | #endif /* ifndef _ECORE_DIRECTFB_PRIVATE_H */ | ||