summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_wayland/ecore_wl_private.h
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-08-29 06:35:02 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-08-29 06:35:02 +0000
commite7d8ab323cd886ca75314748c52e597cf220176f (patch)
treea26b553bdc607504d86b161f0955d991bacdc0a0 /legacy/ecore/src/lib/ecore_wayland/ecore_wl_private.h
parent26de40cb1235ccc1e321bd0bb93c1e51ac08800b (diff)
Ecore_Wayland: Add Copy-n-Paste support for Ecore Wayland.
NB: Based on initial work from Alex <zhiwen.wu@intel.com> (thanks for the patch), but modified to clean up compiler warnings, fixed function declarations, fixed function namespacing. SVN revision: 75809
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_wayland/ecore_wl_private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_wayland/ecore_wl_private.h b/legacy/ecore/src/lib/ecore_wayland/ecore_wl_private.h
index 63a5f12e30..7f59ae9bcd 100644
--- a/legacy/ecore/src/lib/ecore_wayland/ecore_wl_private.h
+++ b/legacy/ecore/src/lib/ecore_wayland/ecore_wl_private.h
@@ -50,6 +50,18 @@ extern Ecore_Wl_Display *_ecore_wl_disp;
50# endif 50# endif
51# define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_wl_log_dom, __VA_ARGS__) 51# define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_wl_log_dom, __VA_ARGS__)
52 52
53struct _Ecore_Wl_Dnd
54{
55 Ecore_Wl_Display *ewd;
56 Ecore_Wl_Input *input;
57
58 /* As provider */
59 struct wl_data_source *data_source;
60 struct wl_array types_offered;
61
62 /* TODO: dnd specific fields */
63};
64
53struct _Ecore_Wl_Dnd_Source 65struct _Ecore_Wl_Dnd_Source
54{ 66{
55 struct wl_data_offer *offer; 67 struct wl_data_offer *offer;
@@ -77,6 +89,7 @@ void _ecore_wl_output_del(Ecore_Wl_Output *output);
77void _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id); 89void _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id);
78void _ecore_wl_input_del(Ecore_Wl_Input *input); 90void _ecore_wl_input_del(Ecore_Wl_Input *input);
79void _ecore_wl_input_pointer_xy_get(int *x, int *y); 91void _ecore_wl_input_pointer_xy_get(int *x, int *y);
92void _ecore_wl_input_set_selection(Ecore_Wl_Input *input, struct wl_data_source *source);
80 93
81void _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device, struct wl_data_offer *offer); 94void _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device, struct wl_data_offer *offer);
82void _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); 95void _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);
@@ -86,4 +99,5 @@ void _ecore_wl_dnd_drop(void *data, struct wl_data_device *data_device __UNUSED_
86void _ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device __UNUSED__, struct wl_data_offer *offer); 99void _ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device __UNUSED__, struct wl_data_offer *offer);
87void _ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source); 100void _ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source);
88 101
102struct wl_data_source *_ecore_wl_create_data_source(Ecore_Wl_Display *ewd);
89#endif 103#endif