diff options
author | Christopher Michael <cpmichael1@comcast.net> | 2012-08-29 06:35:02 +0000 |
---|---|---|
committer | Christopher Michael <cpmichael1@comcast.net> | 2012-08-29 06:35:02 +0000 |
commit | e7d8ab323cd886ca75314748c52e597cf220176f (patch) | |
tree | a26b553bdc607504d86b161f0955d991bacdc0a0 /legacy/ecore/src/lib/ecore_wayland/ecore_wl_private.h | |
parent | 26de40cb1235ccc1e321bd0bb93c1e51ac08800b (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.h | 14 |
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 | ||
53 | struct _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 | |||
53 | struct _Ecore_Wl_Dnd_Source | 65 | struct _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); | |||
77 | void _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id); | 89 | void _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id); |
78 | void _ecore_wl_input_del(Ecore_Wl_Input *input); | 90 | void _ecore_wl_input_del(Ecore_Wl_Input *input); |
79 | void _ecore_wl_input_pointer_xy_get(int *x, int *y); | 91 | void _ecore_wl_input_pointer_xy_get(int *x, int *y); |
92 | void _ecore_wl_input_set_selection(Ecore_Wl_Input *input, struct wl_data_source *source); | ||
80 | 93 | ||
81 | void _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device, struct wl_data_offer *offer); | 94 | void _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device, struct wl_data_offer *offer); |
82 | void _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); | 95 | void _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_ | |||
86 | void _ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device __UNUSED__, struct wl_data_offer *offer); | 99 | void _ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device __UNUSED__, struct wl_data_offer *offer); |
87 | void _ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source); | 100 | void _ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source); |
88 | 101 | ||
102 | struct wl_data_source *_ecore_wl_create_data_source(Ecore_Wl_Display *ewd); | ||
89 | #endif | 103 | #endif |