summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_dnd.c
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-03-13 21:40:59 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-13 21:43:08 -0400
commitdb91d16f780989e580f2a0edfe94fce65bb2f5c4 (patch)
tree0f0204eae5e0e246ca35d4998566c1fab57cf218 /src/lib/ecore_wayland/ecore_wl_dnd.c
parent426382bc8bf94f322a8cf89bf371666ba268cd40 (diff)
ecore-wayland: Whitespace cleanup
Summary: Remove trailing whitespace, convert tabs to spaces as per style guide. Reviewers: zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2157
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_dnd.c')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_dnd.c96
1 files changed, 48 insertions, 48 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c
index b48cc13d5a..4fd7b05166 100644
--- a/src/lib/ecore_wayland/ecore_wl_dnd.c
+++ b/src/lib/ecore_wayland/ecore_wl_dnd.c
@@ -34,25 +34,25 @@ static void _ecore_wl_dnd_source_cb_cancelled(void *data EINA_UNUSED, struct wl_
34static void _ecore_wl_dnd_offer_cb_offer(void *data, struct wl_data_offer *data_offer EINA_UNUSED, const char *type); 34static void _ecore_wl_dnd_offer_cb_offer(void *data, struct wl_data_offer *data_offer EINA_UNUSED, const char *type);
35 35
36/* local wayland interfaces */ 36/* local wayland interfaces */
37static const struct wl_data_source_listener 37static const struct wl_data_source_listener
38_ecore_wl_dnd_source_listener = 38_ecore_wl_dnd_source_listener =
39{ 39{
40 _ecore_wl_dnd_source_cb_target, 40 _ecore_wl_dnd_source_cb_target,
41 _ecore_wl_dnd_source_cb_send, 41 _ecore_wl_dnd_source_cb_send,
42 _ecore_wl_dnd_source_cb_cancelled 42 _ecore_wl_dnd_source_cb_cancelled
43}; 43};
44 44
45static const struct wl_data_offer_listener 45static const struct wl_data_offer_listener
46_ecore_wl_dnd_offer_listener = 46_ecore_wl_dnd_offer_listener =
47{ 47{
48 _ecore_wl_dnd_offer_cb_offer 48 _ecore_wl_dnd_offer_cb_offer
49}; 49};
50 50
51/** 51/**
52 * @deprecated use ecore_wl_dnd_selection_set 52 * @deprecated use ecore_wl_dnd_selection_set
53 * @since 1.7 53 * @since 1.7
54*/ 54*/
55EINA_DEPRECATED EAPI Eina_Bool 55EINA_DEPRECATED EAPI Eina_Bool
56ecore_wl_dnd_set_selection(Ecore_Wl_Dnd *dnd, const char **types_offered) 56ecore_wl_dnd_set_selection(Ecore_Wl_Dnd *dnd, const char **types_offered)
57{ 57{
58 LOGFN(__FILE__, __LINE__, __FUNCTION__); 58 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -62,9 +62,9 @@ ecore_wl_dnd_set_selection(Ecore_Wl_Dnd *dnd, const char **types_offered)
62 62
63/** 63/**
64 * @deprecated use ecore_wl_dnd_selection_get 64 * @deprecated use ecore_wl_dnd_selection_get
65 * @since 1.7 65 * @since 1.7
66*/ 66*/
67EINA_DEPRECATED EAPI Eina_Bool 67EINA_DEPRECATED EAPI Eina_Bool
68ecore_wl_dnd_get_selection(Ecore_Wl_Dnd *dnd, const char *type) 68ecore_wl_dnd_get_selection(Ecore_Wl_Dnd *dnd, const char *type)
69{ 69{
70 LOGFN(__FILE__, __LINE__, __FUNCTION__); 70 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -86,7 +86,7 @@ ecore_wl_dnd_get(void)
86 * @deprecated use ecore_wl_dnd_drag_start 86 * @deprecated use ecore_wl_dnd_drag_start
87 * @since 1.7 87 * @since 1.7
88 */ 88 */
89EINA_DEPRECATED EAPI Eina_Bool 89EINA_DEPRECATED EAPI Eina_Bool
90ecore_wl_dnd_start_drag(Ecore_Wl_Dnd *dnd EINA_UNUSED) 90ecore_wl_dnd_start_drag(Ecore_Wl_Dnd *dnd EINA_UNUSED)
91{ 91{
92 return EINA_FALSE; 92 return EINA_FALSE;
@@ -96,7 +96,7 @@ ecore_wl_dnd_start_drag(Ecore_Wl_Dnd *dnd EINA_UNUSED)
96 * @deprecated use ecore_wl_dnd_selection_owner_has 96 * @deprecated use ecore_wl_dnd_selection_owner_has
97 * @since 1.7 97 * @since 1.7
98 */ 98 */
99EINA_DEPRECATED EAPI Eina_Bool 99EINA_DEPRECATED EAPI Eina_Bool
100ecore_wl_dnd_selection_has_owner(Ecore_Wl_Dnd *dnd) 100ecore_wl_dnd_selection_has_owner(Ecore_Wl_Dnd *dnd)
101{ 101{
102 return ecore_wl_dnd_selection_owner_has(dnd->input); 102 return ecore_wl_dnd_selection_owner_has(dnd->input);
@@ -106,7 +106,7 @@ ecore_wl_dnd_selection_has_owner(Ecore_Wl_Dnd *dnd)
106 * @ingroup Ecore_Wl_Dnd_Group 106 * @ingroup Ecore_Wl_Dnd_Group
107 * @since 1.8 107 * @since 1.8
108 */ 108 */
109EAPI Eina_Bool 109EAPI Eina_Bool
110ecore_wl_dnd_selection_set(Ecore_Wl_Input *input, const char **types_offered) 110ecore_wl_dnd_selection_set(Ecore_Wl_Input *input, const char **types_offered)
111{ 111{
112 struct wl_data_device_manager *man; 112 struct wl_data_device_manager *man;
@@ -145,11 +145,11 @@ ecore_wl_dnd_selection_set(Ecore_Wl_Input *input, const char **types_offered)
145 } 145 }
146 146
147 /* add a listener for data source events */ 147 /* add a listener for data source events */
148 wl_data_source_add_listener(input->data_source, 148 wl_data_source_add_listener(input->data_source,
149 &_ecore_wl_dnd_source_listener, input); 149 &_ecore_wl_dnd_source_listener, input);
150 150
151 /* set the selection */ 151 /* set the selection */
152 wl_data_device_set_selection(input->data_device, input->data_source, 152 wl_data_device_set_selection(input->data_device, input->data_source,
153 input->display->serial); 153 input->display->serial);
154 154
155 return EINA_TRUE; 155 return EINA_TRUE;
@@ -159,7 +159,7 @@ ecore_wl_dnd_selection_set(Ecore_Wl_Input *input, const char **types_offered)
159 * @ingroup Ecore_Wl_Dnd_Group 159 * @ingroup Ecore_Wl_Dnd_Group
160 * @since 1.8 160 * @since 1.8
161 */ 161 */
162EAPI Eina_Bool 162EAPI Eina_Bool
163ecore_wl_dnd_selection_get(Ecore_Wl_Input *input, const char *type) 163ecore_wl_dnd_selection_get(Ecore_Wl_Input *input, const char *type)
164{ 164{
165 char **t; 165 char **t;
@@ -185,7 +185,7 @@ ecore_wl_dnd_selection_get(Ecore_Wl_Input *input, const char *type)
185 * @ingroup Ecore_Wl_Dnd_Group 185 * @ingroup Ecore_Wl_Dnd_Group
186 * @since 1.8 186 * @since 1.8
187 */ 187 */
188EAPI Eina_Bool 188EAPI Eina_Bool
189ecore_wl_dnd_selection_owner_has(Ecore_Wl_Input *input) 189ecore_wl_dnd_selection_owner_has(Ecore_Wl_Input *input)
190{ 190{
191 LOGFN(__FILE__, __LINE__, __FUNCTION__); 191 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -198,7 +198,7 @@ ecore_wl_dnd_selection_owner_has(Ecore_Wl_Input *input)
198 * @ingroup Ecore_Wl_Dnd_Group 198 * @ingroup Ecore_Wl_Dnd_Group
199 * @since 1.8 199 * @since 1.8
200 */ 200 */
201EAPI Eina_Bool 201EAPI Eina_Bool
202ecore_wl_dnd_selection_clear(Ecore_Wl_Input *input) 202ecore_wl_dnd_selection_clear(Ecore_Wl_Input *input)
203{ 203{
204 LOGFN(__FILE__, __LINE__, __FUNCTION__); 204 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -207,7 +207,7 @@ ecore_wl_dnd_selection_clear(Ecore_Wl_Input *input)
207 if (!input) return EINA_FALSE; 207 if (!input) return EINA_FALSE;
208 208
209 /* set the selection to NULL */ 209 /* set the selection to NULL */
210 wl_data_device_set_selection(input->data_device, NULL, 210 wl_data_device_set_selection(input->data_device, NULL,
211 input->display->serial); 211 input->display->serial);
212 212
213 return EINA_TRUE; 213 return EINA_TRUE;
@@ -217,7 +217,7 @@ ecore_wl_dnd_selection_clear(Ecore_Wl_Input *input)
217 * @ingroup Ecore_Wl_Dnd_Group 217 * @ingroup Ecore_Wl_Dnd_Group
218 * @since 1.8 218 * @since 1.8
219 */ 219 */
220EAPI void 220EAPI void
221ecore_wl_dnd_drag_start(Ecore_Wl_Input *input, Ecore_Wl_Window *win, Ecore_Wl_Window *dragwin, int x EINA_UNUSED, int y EINA_UNUSED, int w EINA_UNUSED, int h EINA_UNUSED) 221ecore_wl_dnd_drag_start(Ecore_Wl_Input *input, Ecore_Wl_Window *win, Ecore_Wl_Window *dragwin, int x EINA_UNUSED, int y EINA_UNUSED, int w EINA_UNUSED, int h EINA_UNUSED)
222{ 222{
223 struct wl_surface *drag_surface; 223 struct wl_surface *drag_surface;
@@ -238,14 +238,14 @@ ecore_wl_dnd_drag_start(Ecore_Wl_Input *input, Ecore_Wl_Window *win, Ecore_Wl_Wi
238 ecore_wl_input_ungrab(input); 238 ecore_wl_input_ungrab(input);
239 239
240 /* add a listener for data source events */ 240 /* add a listener for data source events */
241 wl_data_source_add_listener(input->data_source, 241 wl_data_source_add_listener(input->data_source,
242 &_ecore_wl_dnd_source_listener, input); 242 &_ecore_wl_dnd_source_listener, input);
243 243
244 /* start the drag */ 244 /* start the drag */
245 if ((origin_surface = ecore_wl_window_surface_get(win))) 245 if ((origin_surface = ecore_wl_window_surface_get(win)))
246 { 246 {
247 wl_data_device_start_drag(input->data_device, input->data_source, 247 wl_data_device_start_drag(input->data_device, input->data_source,
248 origin_surface, drag_surface, 248 origin_surface, drag_surface,
249 input->display->serial); 249 input->display->serial);
250 250
251 /* set pointer image */ 251 /* set pointer image */
@@ -253,8 +253,8 @@ ecore_wl_dnd_drag_start(Ecore_Wl_Input *input, Ecore_Wl_Window *win, Ecore_Wl_Wi
253 } 253 }
254 254
255 /* NB: Below code disabled for now 255 /* NB: Below code disabled for now
256 * 256 *
257 * This Was for adjusting the "drag icon" to be centered on the mouse 257 * This Was for adjusting the "drag icon" to be centered on the mouse
258 * based on the hotspot, but it crashes for some reason :( 258 * based on the hotspot, but it crashes for some reason :(
259 */ 259 */
260 260
@@ -274,7 +274,7 @@ ecore_wl_dnd_drag_start(Ecore_Wl_Input *input, Ecore_Wl_Window *win, Ecore_Wl_Wi
274 * @ingroup Ecore_Wl_Dnd_Group 274 * @ingroup Ecore_Wl_Dnd_Group
275 * @since 1.8 275 * @since 1.8
276 */ 276 */
277EAPI void 277EAPI void
278ecore_wl_dnd_drag_end(Ecore_Wl_Input *input) 278ecore_wl_dnd_drag_end(Ecore_Wl_Input *input)
279{ 279{
280 Ecore_Wl_Event_Dnd_End *ev; 280 Ecore_Wl_Event_Dnd_End *ev;
@@ -316,7 +316,7 @@ ecore_wl_dnd_drag_end(Ecore_Wl_Input *input)
316 * @ingroup Ecore_Wl_Dnd_Group 316 * @ingroup Ecore_Wl_Dnd_Group
317 * @since 1.8 317 * @since 1.8
318 */ 318 */
319EAPI Eina_Bool 319EAPI Eina_Bool
320ecore_wl_dnd_drag_get(Ecore_Wl_Input *input, const char *type) 320ecore_wl_dnd_drag_get(Ecore_Wl_Input *input, const char *type)
321{ 321{
322 char **t; 322 char **t;
@@ -340,7 +340,7 @@ ecore_wl_dnd_drag_get(Ecore_Wl_Input *input, const char *type)
340 * @ingroup Ecore_Wl_Dnd_Group 340 * @ingroup Ecore_Wl_Dnd_Group
341 * @since 1.8 341 * @since 1.8
342 */ 342 */
343EAPI void 343EAPI void
344ecore_wl_dnd_drag_types_set(Ecore_Wl_Input *input, const char **types_offered) 344ecore_wl_dnd_drag_types_set(Ecore_Wl_Input *input, const char **types_offered)
345{ 345{
346 struct wl_data_device_manager *man; 346 struct wl_data_device_manager *man;
@@ -379,7 +379,7 @@ ecore_wl_dnd_drag_types_set(Ecore_Wl_Input *input, const char **types_offered)
379 { 379 {
380 if (!*type) continue; 380 if (!*type) continue;
381 t = wl_array_add(&input->data_types, sizeof(*t)); 381 t = wl_array_add(&input->data_types, sizeof(*t));
382 if (t) 382 if (t)
383 { 383 {
384 *t = strdup(*type); 384 *t = strdup(*type);
385 wl_data_source_offer(input->data_source, *t); 385 wl_data_source_offer(input->data_source, *t);
@@ -403,7 +403,7 @@ ecore_wl_dnd_drag_types_get(Ecore_Wl_Input *input)
403} 403}
404 404
405/* private functions */ 405/* private functions */
406void 406void
407_ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device EINA_UNUSED, struct wl_data_offer *offer) 407_ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device EINA_UNUSED, struct wl_data_offer *offer)
408{ 408{
409 Ecore_Wl_Dnd_Source *source; 409 Ecore_Wl_Dnd_Source *source;
@@ -418,11 +418,11 @@ _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device EINA
418 source->input = input; 418 source->input = input;
419 source->data_offer = offer; 419 source->data_offer = offer;
420 420
421 wl_data_offer_add_listener(source->data_offer, 421 wl_data_offer_add_listener(source->data_offer,
422 &_ecore_wl_dnd_offer_listener, source); 422 &_ecore_wl_dnd_offer_listener, source);
423} 423}
424 424
425void 425void
426_ecore_wl_dnd_enter(void *data, struct wl_data_device *data_device EINA_UNUSED, unsigned int timestamp, struct wl_surface *surface, int x, int y, struct wl_data_offer *offer) 426_ecore_wl_dnd_enter(void *data, struct wl_data_device *data_device EINA_UNUSED, unsigned int timestamp, struct wl_surface *surface, int x, int y, struct wl_data_offer *offer)
427{ 427{
428 Ecore_Wl_Event_Dnd_Enter *ev; 428 Ecore_Wl_Event_Dnd_Enter *ev;
@@ -455,7 +455,7 @@ _ecore_wl_dnd_enter(void *data, struct wl_data_device *data_device EINA_UNUSED,
455 455
456 if (!(ev = calloc(1, sizeof(Ecore_Wl_Event_Dnd_Enter)))) return; 456 if (!(ev = calloc(1, sizeof(Ecore_Wl_Event_Dnd_Enter)))) return;
457 457
458 if (win) 458 if (win)
459 ev->win = win->id; 459 ev->win = win->id;
460 460
461 if (input->keyboard_focus) 461 if (input->keyboard_focus)
@@ -471,7 +471,7 @@ _ecore_wl_dnd_enter(void *data, struct wl_data_device *data_device EINA_UNUSED,
471 ecore_event_add(ECORE_WL_EVENT_DND_ENTER, ev, NULL, NULL); 471 ecore_event_add(ECORE_WL_EVENT_DND_ENTER, ev, NULL, NULL);
472} 472}
473 473
474void 474void
475_ecore_wl_dnd_leave(void *data, struct wl_data_device *data_device EINA_UNUSED) 475_ecore_wl_dnd_leave(void *data, struct wl_data_device *data_device EINA_UNUSED)
476{ 476{
477 Ecore_Wl_Event_Dnd_Leave *ev; 477 Ecore_Wl_Event_Dnd_Leave *ev;
@@ -492,7 +492,7 @@ _ecore_wl_dnd_leave(void *data, struct wl_data_device *data_device EINA_UNUSED)
492 ecore_event_add(ECORE_WL_EVENT_DND_LEAVE, ev, NULL, NULL); 492 ecore_event_add(ECORE_WL_EVENT_DND_LEAVE, ev, NULL, NULL);
493} 493}
494 494
495void 495void
496_ecore_wl_dnd_motion(void *data, struct wl_data_device *data_device EINA_UNUSED, unsigned int timestamp EINA_UNUSED, int x, int y) 496_ecore_wl_dnd_motion(void *data, struct wl_data_device *data_device EINA_UNUSED, unsigned int timestamp EINA_UNUSED, int x, int y)
497{ 497{
498 Ecore_Wl_Event_Dnd_Position *ev; 498 Ecore_Wl_Event_Dnd_Position *ev;
@@ -519,7 +519,7 @@ _ecore_wl_dnd_motion(void *data, struct wl_data_device *data_device EINA_UNUSED,
519 ecore_event_add(ECORE_WL_EVENT_DND_POSITION, ev, NULL, NULL); 519 ecore_event_add(ECORE_WL_EVENT_DND_POSITION, ev, NULL, NULL);
520} 520}
521 521
522void 522void
523_ecore_wl_dnd_drop(void *data, struct wl_data_device *data_device EINA_UNUSED) 523_ecore_wl_dnd_drop(void *data, struct wl_data_device *data_device EINA_UNUSED)
524{ 524{
525 Ecore_Wl_Event_Dnd_Drop *ev; 525 Ecore_Wl_Event_Dnd_Drop *ev;
@@ -545,7 +545,7 @@ _ecore_wl_dnd_drop(void *data, struct wl_data_device *data_device EINA_UNUSED)
545 ecore_event_add(ECORE_WL_EVENT_DND_DROP, ev, NULL, NULL); 545 ecore_event_add(ECORE_WL_EVENT_DND_DROP, ev, NULL, NULL);
546} 546}
547 547
548void 548void
549_ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device EINA_UNUSED, struct wl_data_offer *offer) 549_ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device EINA_UNUSED, struct wl_data_offer *offer)
550{ 550{
551 Ecore_Wl_Input *input; 551 Ecore_Wl_Input *input;
@@ -567,7 +567,7 @@ _ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device EINA_UNUS
567 } 567 }
568} 568}
569 569
570void 570void
571_ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source) 571_ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source)
572{ 572{
573 LOGFN(__FILE__, __LINE__, __FUNCTION__); 573 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -583,7 +583,7 @@ _ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source)
583} 583}
584 584
585/* local functions */ 585/* local functions */
586static void 586static void
587_ecore_wl_dnd_selection_data_receive(Ecore_Wl_Dnd_Source *source, const char *type) 587_ecore_wl_dnd_selection_data_receive(Ecore_Wl_Dnd_Source *source, const char *type)
588{ 588{
589 int epoll_fd; 589 int epoll_fd;
@@ -640,7 +640,7 @@ err:
640 return; 640 return;
641} 641}
642 642
643static Eina_Bool 643static Eina_Bool
644_ecore_wl_dnd_selection_data_read(void *data, Ecore_Fd_Handler *fd_handler EINA_UNUSED) 644_ecore_wl_dnd_selection_data_read(void *data, Ecore_Fd_Handler *fd_handler EINA_UNUSED)
645{ 645{
646 int len; 646 int len;
@@ -655,7 +655,7 @@ _ecore_wl_dnd_selection_data_read(void *data, Ecore_Fd_Handler *fd_handler EINA_
655 655
656 len = read(source->fd, buffer, sizeof buffer); 656 len = read(source->fd, buffer, sizeof buffer);
657 657
658 if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Selection_Data_Ready)))) 658 if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Selection_Data_Ready))))
659 return ECORE_CALLBACK_CANCEL; 659 return ECORE_CALLBACK_CANCEL;
660 660
661 if (len <= 0) 661 if (len <= 0)
@@ -682,13 +682,13 @@ _ecore_wl_dnd_selection_data_read(void *data, Ecore_Fd_Handler *fd_handler EINA_
682 ret = ECORE_CALLBACK_RENEW; 682 ret = ECORE_CALLBACK_RENEW;
683 } 683 }
684 684
685 ecore_event_add(ECORE_WL_EVENT_SELECTION_DATA_READY, event, 685 ecore_event_add(ECORE_WL_EVENT_SELECTION_DATA_READY, event,
686 _ecore_wl_dnd_selection_data_ready_cb_free, NULL); 686 _ecore_wl_dnd_selection_data_ready_cb_free, NULL);
687 687
688 return ret; 688 return ret;
689} 689}
690 690
691static void 691static void
692_ecore_wl_dnd_selection_data_ready_cb_free(void *data EINA_UNUSED, void *event) 692_ecore_wl_dnd_selection_data_ready_cb_free(void *data EINA_UNUSED, void *event)
693{ 693{
694 Ecore_Wl_Event_Selection_Data_Ready *ev; 694 Ecore_Wl_Event_Selection_Data_Ready *ev;
@@ -722,11 +722,11 @@ _ecore_wl_dnd_selection_cb_idle(void *data)
722 free(ctx); 722 free(ctx);
723 return ECORE_CALLBACK_CANCEL; 723 return ECORE_CALLBACK_CANCEL;
724 } 724 }
725 } 725 }
726 return ECORE_CALLBACK_RENEW; 726 return ECORE_CALLBACK_RENEW;
727} 727}
728 728
729static void 729static void
730_ecore_wl_dnd_source_cb_target(void *data, struct wl_data_source *source EINA_UNUSED, const char *mime_type EINA_UNUSED) 730_ecore_wl_dnd_source_cb_target(void *data, struct wl_data_source *source EINA_UNUSED, const char *mime_type EINA_UNUSED)
731{ 731{
732 Ecore_Wl_Event_Data_Source_Target *event; 732 Ecore_Wl_Event_Data_Source_Target *event;
@@ -757,7 +757,7 @@ _ecore_wl_dnd_source_cb_target_free(void *data EINA_UNUSED, void *event)
757 free(ev); 757 free(ev);
758} 758}
759 759
760static void 760static void
761_ecore_wl_dnd_source_cb_send(void *data, struct wl_data_source *source EINA_UNUSED, const char *mime_type, int32_t fd) 761_ecore_wl_dnd_source_cb_send(void *data, struct wl_data_source *source EINA_UNUSED, const char *mime_type, int32_t fd)
762{ 762{
763 Ecore_Wl_Event_Data_Source_Send *event; 763 Ecore_Wl_Event_Data_Source_Send *event;
@@ -772,11 +772,11 @@ _ecore_wl_dnd_source_cb_send(void *data, struct wl_data_source *source EINA_UNUS
772 event->type = strdup(mime_type); 772 event->type = strdup(mime_type);
773 event->fd = fd; 773 event->fd = fd;
774 774
775 ecore_event_add(ECORE_WL_EVENT_DATA_SOURCE_SEND, event, 775 ecore_event_add(ECORE_WL_EVENT_DATA_SOURCE_SEND, event,
776 _ecore_wl_dnd_source_cb_send_free, NULL); 776 _ecore_wl_dnd_source_cb_send_free, NULL);
777} 777}
778 778
779static void 779static void
780_ecore_wl_dnd_source_cb_send_free(void *data EINA_UNUSED, void *event) 780_ecore_wl_dnd_source_cb_send_free(void *data EINA_UNUSED, void *event)
781{ 781{
782 Ecore_Wl_Event_Data_Source_Send *ev; 782 Ecore_Wl_Event_Data_Source_Send *ev;
@@ -789,7 +789,7 @@ _ecore_wl_dnd_source_cb_send_free(void *data EINA_UNUSED, void *event)
789 free(ev); 789 free(ev);
790} 790}
791 791
792static void 792static void
793_ecore_wl_dnd_source_cb_cancelled(void *data, struct wl_data_source *source) 793_ecore_wl_dnd_source_cb_cancelled(void *data, struct wl_data_source *source)
794{ 794{
795 Ecore_Wl_Input *input; 795 Ecore_Wl_Input *input;
@@ -813,7 +813,7 @@ _ecore_wl_dnd_source_cb_cancelled(void *data, struct wl_data_source *source)
813 ecore_event_add(ECORE_WL_EVENT_DATA_SOURCE_CANCELLED, ev, NULL, NULL); 813 ecore_event_add(ECORE_WL_EVENT_DATA_SOURCE_CANCELLED, ev, NULL, NULL);
814} 814}
815 815
816static void 816static void
817_ecore_wl_dnd_offer_cb_offer(void *data, struct wl_data_offer *data_offer EINA_UNUSED, const char *type) 817_ecore_wl_dnd_offer_cb_offer(void *data, struct wl_data_offer *data_offer EINA_UNUSED, const char *type)
818{ 818{
819 Ecore_Wl_Dnd_Source *source; 819 Ecore_Wl_Dnd_Source *source;