diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_wayland/ecore_wl_private.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_wayland/ecore_wl_private.h b/libraries/ecore/src/lib/ecore_wayland/ecore_wl_private.h new file mode 100644 index 0000000..eec5ffe --- /dev/null +++ b/libraries/ecore/src/lib/ecore_wayland/ecore_wl_private.h | |||
@@ -0,0 +1,85 @@ | |||
1 | #ifndef _ECORE_WAYLAND_PRIVATE_H | ||
2 | # define _ECORE_WAYLAND_PRIVATE_H | ||
3 | |||
4 | # include <limits.h> | ||
5 | |||
6 | //# define LOGFNS 1 | ||
7 | |||
8 | # ifdef LOGFNS | ||
9 | # include <stdio.h> | ||
10 | # define LOGFN(fl, ln, fn) printf("-ECORE-WL: %25s: %5i - %s\n", fl, ln, fn); | ||
11 | # else | ||
12 | # define LOGFN(fl, ln, fn) | ||
13 | # endif | ||
14 | |||
15 | extern int _ecore_wl_log_dom; | ||
16 | |||
17 | # ifdef ECORE_WL_DEFAULT_LOG_COLOR | ||
18 | # undef ECORE_WL_DEFAULT_LOG_COLOR | ||
19 | # endif | ||
20 | # define ECORE_WL_DEFAULT_LOG_COLOR EINA_COLOR_BLUE | ||
21 | |||
22 | # ifdef ERR | ||
23 | # undef ERR | ||
24 | # endif | ||
25 | # define ERR(...) EINA_LOG_DOM_ERR(_ecore_wl_log_dom, __VA_ARGS__) | ||
26 | |||
27 | # ifdef DBG | ||
28 | # undef DBG | ||
29 | # endif | ||
30 | # define DBG(...) EINA_LOG_DOM_DBG(_ecore_wl_log_dom, __VA_ARGS__) | ||
31 | |||
32 | # ifdef INF | ||
33 | # undef INF | ||
34 | # endif | ||
35 | # define INF(...) EINA_LOG_DOM_INFO(_ecore_wl_log_dom, __VA_ARGS__) | ||
36 | |||
37 | # ifdef WRN | ||
38 | # undef WRN | ||
39 | # endif | ||
40 | # define WRN(...) EINA_LOG_DOM_WARN(_ecore_wl_log_dom, __VA_ARGS__) | ||
41 | |||
42 | # ifdef CRIT | ||
43 | # undef CRIT | ||
44 | # endif | ||
45 | # define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_wl_log_dom, __VA_ARGS__) | ||
46 | |||
47 | typedef struct _Ecore_Wl_Dnd_Source | ||
48 | { | ||
49 | struct wl_data_offer *offer; | ||
50 | int refs; | ||
51 | |||
52 | Eina_Array *types; | ||
53 | |||
54 | uint32_t timestamp; | ||
55 | void *data; | ||
56 | } Ecore_Wl_Dnd_Source; | ||
57 | |||
58 | typedef struct _Ecore_Wl_Dnd_Target | ||
59 | { | ||
60 | /* NB: These are not the real fields for this structure, | ||
61 | * and it is Bound to change....soon */ | ||
62 | struct wl_data_offer *offer; | ||
63 | int refs; | ||
64 | |||
65 | Eina_Array *types; | ||
66 | |||
67 | uint32_t timestamp; | ||
68 | void *data; | ||
69 | } Ecore_Wl_Dnd_Target; | ||
70 | |||
71 | struct _Ecore_Wl_Drag_Source | ||
72 | { | ||
73 | struct wl_data_device *data_dev; | ||
74 | struct wl_buffer *buffer; | ||
75 | |||
76 | int32_t hotspot_x, hotspot_y; | ||
77 | int32_t offset_x, offset_y; | ||
78 | const char *mimetype; | ||
79 | uint32_t timestamp; | ||
80 | void *data; | ||
81 | |||
82 | struct wl_data_source *data_source; | ||
83 | }; | ||
84 | |||
85 | #endif | ||