summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_private.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-05-28 11:41:46 +0100
committerChris Michael <cp.michael@samsung.com>2013-05-28 11:48:51 +0100
commita6343c65c2810b27befea41c1166f0eadb38612f (patch)
treee2640bc8587580658508a671b1c78927de185b4e /src/lib/ecore_wayland/ecore_wl_private.h
parent7983c69255a03b1b55f31a888a8c9e808607d3dd (diff)
Deprecate/remove some internal functions that were just not needed.
Add a wl_data_offer to Ecore_Wl_Dnd_Source Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_private.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_private.h b/src/lib/ecore_wayland/ecore_wl_private.h
index f07c0478ed..8ad7c64c8f 100644
--- a/src/lib/ecore_wayland/ecore_wl_private.h
+++ b/src/lib/ecore_wayland/ecore_wl_private.h
@@ -54,25 +54,18 @@ struct _Ecore_Wl_Dnd
54{ 54{
55 Ecore_Wl_Display *ewd; 55 Ecore_Wl_Display *ewd;
56 Ecore_Wl_Input *input; 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}; 57};
64 58
65struct _Ecore_Wl_Dnd_Source 59struct _Ecore_Wl_Dnd_Source
66{ 60{
67 struct wl_data_offer *offer;
68 Ecore_Wl_Input *input; 61 Ecore_Wl_Input *input;
62
63 struct wl_data_offer *data_offer;
69 struct wl_array types; 64 struct wl_array types;
65
70 int refcount; 66 int refcount;
71 int fd; 67 int fd;
72 int x, y; 68 int x, y;
73
74 /* TODO: task & data_func */
75 void *data;
76}; 69};
77 70
78struct _Ecore_Wl_Dnd_Target 71struct _Ecore_Wl_Dnd_Target
@@ -89,7 +82,6 @@ void _ecore_wl_output_del(Ecore_Wl_Output *output);
89void _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id); 82void _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id);
90void _ecore_wl_input_del(Ecore_Wl_Input *input); 83void _ecore_wl_input_del(Ecore_Wl_Input *input);
91void _ecore_wl_input_pointer_xy_get(int *x, int *y); 84void _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);
93 85
94void _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device, struct wl_data_offer *offer); 86void _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device, struct wl_data_offer *offer);
95void _ecore_wl_dnd_enter(void *data, struct wl_data_device *data_device, unsigned int timestamp, struct wl_surface *surface, int x, int y, struct wl_data_offer *offer); 87void _ecore_wl_dnd_enter(void *data, struct wl_data_device *data_device, unsigned int timestamp, struct wl_surface *surface, int x, int y, struct wl_data_offer *offer);
@@ -102,5 +94,4 @@ void _ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source);
102void _ecore_wl_events_init(void); 94void _ecore_wl_events_init(void);
103void _ecore_wl_events_shutdown(void); 95void _ecore_wl_events_shutdown(void);
104 96
105struct wl_data_source *_ecore_wl_create_data_source(Ecore_Wl_Display *ewd);
106#endif 97#endif