aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/src/lib/ecore_wayland/ecore_wl_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ecore/src/lib/ecore_wayland/ecore_wl_private.h')
-rw-r--r--libraries/ecore/src/lib/ecore_wayland/ecore_wl_private.h87
1 files changed, 0 insertions, 87 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
deleted file mode 100644
index 31956a1..0000000
--- a/libraries/ecore/src/lib/ecore_wayland/ecore_wl_private.h
+++ /dev/null
@@ -1,87 +0,0 @@
1#ifndef _ECORE_WAYLAND_PRIVATE_H
2# define _ECORE_WAYLAND_PRIVATE_H
3
4# include <limits.h>
5# include <xkbcommon/xkbcommon.h>
6
7# include "Ecore_Wayland.h"
8
9//# define LOGFNS 1
10
11# ifdef LOGFNS
12# include <stdio.h>
13# define LOGFN(fl, ln, fn) printf("-ECORE-WL: %25s: %5i - %s\n", fl, ln, fn);
14# else
15# define LOGFN(fl, ln, fn)
16# endif
17
18extern int _ecore_wl_log_dom;
19extern Ecore_Wl_Display *_ecore_wl_disp;
20
21# ifdef ECORE_WL_DEFAULT_LOG_COLOR
22# undef ECORE_WL_DEFAULT_LOG_COLOR
23# endif
24# define ECORE_WL_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
25
26# ifdef ERR
27# undef ERR
28# endif
29# define ERR(...) EINA_LOG_DOM_ERR(_ecore_wl_log_dom, __VA_ARGS__)
30
31# ifdef DBG
32# undef DBG
33# endif
34# define DBG(...) EINA_LOG_DOM_DBG(_ecore_wl_log_dom, __VA_ARGS__)
35
36# ifdef INF
37# undef INF
38# endif
39# define INF(...) EINA_LOG_DOM_INFO(_ecore_wl_log_dom, __VA_ARGS__)
40
41# ifdef WRN
42# undef WRN
43# endif
44# define WRN(...) EINA_LOG_DOM_WARN(_ecore_wl_log_dom, __VA_ARGS__)
45
46# ifdef CRIT
47# undef CRIT
48# endif
49# define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_wl_log_dom, __VA_ARGS__)
50
51struct _Ecore_Wl_Dnd_Source
52{
53 struct wl_data_offer *offer;
54 Ecore_Wl_Input *input;
55 struct wl_array types;
56 int refcount;
57 int fd;
58 int x, y;
59
60 /* TODO: task & data_func */
61 void *data;
62};
63
64struct _Ecore_Wl_Dnd_Target
65{
66 Ecore_Wl_Dnd_Source *source;
67};
68
69void _ecore_wl_window_init(void);
70void _ecore_wl_window_shutdown(void);
71
72void _ecore_wl_output_add(Ecore_Wl_Display *ewd, unsigned int id);
73void _ecore_wl_output_del(Ecore_Wl_Output *output);
74
75void _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id);
76void _ecore_wl_input_del(Ecore_Wl_Input *input);
77void _ecore_wl_input_pointer_xy_get(int *x, int *y);
78
79void _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device, unsigned int id);
80void _ecore_wl_dnd_enter(void *data, struct wl_data_device *data_device __UNUSED__, unsigned int timestamp __UNUSED__, struct wl_surface *surface, int x, int y, struct wl_data_offer *offer);
81void _ecore_wl_dnd_leave(void *data, struct wl_data_device *data_device __UNUSED__);
82void _ecore_wl_dnd_motion(void *data, struct wl_data_device *data_device __UNUSED__, unsigned int timestamp __UNUSED__, int x, int y);
83void _ecore_wl_dnd_drop(void *data, struct wl_data_device *data_device __UNUSED__);
84void _ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device __UNUSED__, struct wl_data_offer *offer);
85void _ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source);
86
87#endif