summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_dnd.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-05-04 14:21:03 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-04 15:15:07 +0100
commit3c619b96fc8b9e68c0ba4c7f191465ea7f1a428e (patch)
tree30cf96d89c5f64482d6553b9cce87a63774c85eb /src/lib/ecore_wayland/ecore_wl_dnd.c
parent016953644494de3b42d9d7538c457fe44f5ca5e1 (diff)
remove arguments of LOGFN in ecre_x and ecore_wayland as the are always the same
Reviewers: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11769
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_dnd.c')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_dnd.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c
index 09f6c9c9a9..d4bf3e193f 100644
--- a/src/lib/ecore_wayland/ecore_wl_dnd.c
+++ b/src/lib/ecore_wayland/ecore_wl_dnd.c
@@ -85,7 +85,7 @@ _ecore_wl_dnd_offer_listener =
85EINA_DEPRECATED EAPI Eina_Bool 85EINA_DEPRECATED EAPI Eina_Bool
86ecore_wl_dnd_set_selection(Ecore_Wl_Dnd *dnd, const char **types_offered) 86ecore_wl_dnd_set_selection(Ecore_Wl_Dnd *dnd, const char **types_offered)
87{ 87{
88 LOGFN(__FILE__, __LINE__, __FUNCTION__); 88 LOGFN;
89 89
90 return ecore_wl_dnd_selection_set(dnd->input, types_offered); 90 return ecore_wl_dnd_selection_set(dnd->input, types_offered);
91} 91}
@@ -97,7 +97,7 @@ ecore_wl_dnd_set_selection(Ecore_Wl_Dnd *dnd, const char **types_offered)
97EINA_DEPRECATED EAPI Eina_Bool 97EINA_DEPRECATED EAPI Eina_Bool
98ecore_wl_dnd_get_selection(Ecore_Wl_Dnd *dnd, const char *type) 98ecore_wl_dnd_get_selection(Ecore_Wl_Dnd *dnd, const char *type)
99{ 99{
100 LOGFN(__FILE__, __LINE__, __FUNCTION__); 100 LOGFN;
101 101
102 return ecore_wl_dnd_selection_get(dnd->input, type); 102 return ecore_wl_dnd_selection_get(dnd->input, type);
103} 103}
@@ -143,7 +143,7 @@ ecore_wl_dnd_selection_set(Ecore_Wl_Input *input, const char **types_offered)
143 const char **type; 143 const char **type;
144 char **t; 144 char **t;
145 145
146 LOGFN(__FILE__, __LINE__, __FUNCTION__); 146 LOGFN;
147 147
148 if (!input) return EINA_FALSE; 148 if (!input) return EINA_FALSE;
149 149
@@ -197,7 +197,7 @@ ecore_wl_dnd_selection_get(Ecore_Wl_Input *input, const char *type)
197{ 197{
198 char **t; 198 char **t;
199 199
200 LOGFN(__FILE__, __LINE__, __FUNCTION__); 200 LOGFN;
201 201
202 /* check for valid input and selection source */ 202 /* check for valid input and selection source */
203 if ((!input) || (!input->selection_source)) return EINA_FALSE; 203 if ((!input) || (!input->selection_source)) return EINA_FALSE;
@@ -221,7 +221,7 @@ ecore_wl_dnd_selection_get(Ecore_Wl_Input *input, const char *type)
221EAPI Eina_Bool 221EAPI Eina_Bool
222ecore_wl_dnd_selection_owner_has(Ecore_Wl_Input *input) 222ecore_wl_dnd_selection_owner_has(Ecore_Wl_Input *input)
223{ 223{
224 LOGFN(__FILE__, __LINE__, __FUNCTION__); 224 LOGFN;
225 225
226 if (!input) return EINA_FALSE; 226 if (!input) return EINA_FALSE;
227 return (input->selection_source != NULL); 227 return (input->selection_source != NULL);
@@ -234,7 +234,7 @@ ecore_wl_dnd_selection_owner_has(Ecore_Wl_Input *input)
234EAPI Eina_Bool 234EAPI Eina_Bool
235ecore_wl_dnd_selection_clear(Ecore_Wl_Input *input) 235ecore_wl_dnd_selection_clear(Ecore_Wl_Input *input)
236{ 236{
237 LOGFN(__FILE__, __LINE__, __FUNCTION__); 237 LOGFN;
238 238
239 /* check for valid input */ 239 /* check for valid input */
240 if (!input) return EINA_FALSE; 240 if (!input) return EINA_FALSE;
@@ -256,7 +256,7 @@ ecore_wl_dnd_drag_start(Ecore_Wl_Input *input, Ecore_Wl_Window *win, Ecore_Wl_Wi
256 struct wl_surface *drag_surface; 256 struct wl_surface *drag_surface;
257 struct wl_surface *origin_surface; 257 struct wl_surface *origin_surface;
258 258
259 LOGFN(__FILE__, __LINE__, __FUNCTION__); 259 LOGFN;
260 260
261 /* check for valid input. if not, get the default one */ 261 /* check for valid input. if not, get the default one */
262 if (!input) input = _ecore_wl_disp->input; 262 if (!input) input = _ecore_wl_disp->input;
@@ -312,7 +312,7 @@ ecore_wl_dnd_drag_end(Ecore_Wl_Input *input)
312{ 312{
313 Ecore_Wl_Event_Dnd_End *ev; 313 Ecore_Wl_Event_Dnd_End *ev;
314 314
315 LOGFN(__FILE__, __LINE__, __FUNCTION__); 315 LOGFN;
316 316
317 /* check for valid input. if not, get the default one */ 317 /* check for valid input. if not, get the default one */
318 if (!input) input = _ecore_wl_disp->input; 318 if (!input) input = _ecore_wl_disp->input;
@@ -354,7 +354,7 @@ ecore_wl_dnd_drag_get(Ecore_Wl_Input *input, const char *type)
354{ 354{
355 char **t; 355 char **t;
356 356
357 LOGFN(__FILE__, __LINE__, __FUNCTION__); 357 LOGFN;
358 358
359 /* check for valid input and drag source */ 359 /* check for valid input and drag source */
360 if ((!input) || (!input->drag_source)) return EINA_FALSE; 360 if ((!input) || (!input->drag_source)) return EINA_FALSE;
@@ -380,7 +380,7 @@ ecore_wl_dnd_drag_types_set(Ecore_Wl_Input *input, const char **types_offered)
380 const char **type; 380 const char **type;
381 char **t; 381 char **t;
382 382
383 LOGFN(__FILE__, __LINE__, __FUNCTION__); 383 LOGFN;
384 384
385 /* check for valid input. if not, get the default one */ 385 /* check for valid input. if not, get the default one */
386 if (!input) input = _ecore_wl_disp->input; 386 if (!input) input = _ecore_wl_disp->input;
@@ -426,7 +426,7 @@ ecore_wl_dnd_drag_types_set(Ecore_Wl_Input *input, const char **types_offered)
426EAPI struct wl_array * 426EAPI struct wl_array *
427ecore_wl_dnd_drag_types_get(Ecore_Wl_Input *input) 427ecore_wl_dnd_drag_types_get(Ecore_Wl_Input *input)
428{ 428{
429 LOGFN(__FILE__, __LINE__, __FUNCTION__); 429 LOGFN;
430 430
431 /* check for valid input. if not, get the default one */ 431 /* check for valid input. if not, get the default one */
432 if (!input) input = _ecore_wl_disp->input; 432 if (!input) input = _ecore_wl_disp->input;
@@ -441,7 +441,7 @@ _ecore_wl_dnd_add(Ecore_Wl_Input *input, struct wl_data_device *data_device EINA
441{ 441{
442 Ecore_Wl_Dnd_Source *source; 442 Ecore_Wl_Dnd_Source *source;
443 443
444 LOGFN(__FILE__, __LINE__, __FUNCTION__); 444 LOGFN;
445 445
446 if (!(source = malloc(sizeof(Ecore_Wl_Dnd_Source)))) 446 if (!(source = malloc(sizeof(Ecore_Wl_Dnd_Source))))
447 return; 447 return;
@@ -464,7 +464,7 @@ _ecore_wl_dnd_enter(void *data, struct wl_data_device *data_device EINA_UNUSED,
464 char **types; 464 char **types;
465 int num = 0; 465 int num = 0;
466 466
467 LOGFN(__FILE__, __LINE__, __FUNCTION__); 467 LOGFN;
468 468
469 if (!(input = data)) return; 469 if (!(input = data)) return;
470 470
@@ -510,7 +510,7 @@ _ecore_wl_dnd_leave(void *data, struct wl_data_device *data_device EINA_UNUSED)
510 Ecore_Wl_Event_Dnd_Leave *ev; 510 Ecore_Wl_Event_Dnd_Leave *ev;
511 Ecore_Wl_Input *input; 511 Ecore_Wl_Input *input;
512 512
513 LOGFN(__FILE__, __LINE__, __FUNCTION__); 513 LOGFN;
514 514
515 if (!(input = data)) return; 515 if (!(input = data)) return;
516 516
@@ -531,7 +531,7 @@ _ecore_wl_dnd_motion(void *data, struct wl_data_device *data_device EINA_UNUSED,
531 Ecore_Wl_Event_Dnd_Position *ev; 531 Ecore_Wl_Event_Dnd_Position *ev;
532 Ecore_Wl_Input *input; 532 Ecore_Wl_Input *input;
533 533
534 LOGFN(__FILE__, __LINE__, __FUNCTION__); 534 LOGFN;
535 535
536 if (!(input = data)) return; 536 if (!(input = data)) return;
537 537
@@ -558,7 +558,7 @@ _ecore_wl_dnd_drop(void *data, struct wl_data_device *data_device EINA_UNUSED)
558 Ecore_Wl_Event_Dnd_Drop *ev; 558 Ecore_Wl_Event_Dnd_Drop *ev;
559 Ecore_Wl_Input *input; 559 Ecore_Wl_Input *input;
560 560
561 LOGFN(__FILE__, __LINE__, __FUNCTION__); 561 LOGFN;
562 562
563 if (!(input = data)) return; 563 if (!(input = data)) return;
564 564
@@ -583,7 +583,7 @@ _ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device EINA_UNUS
583{ 583{
584 Ecore_Wl_Input *input; 584 Ecore_Wl_Input *input;
585 585
586 LOGFN(__FILE__, __LINE__, __FUNCTION__); 586 LOGFN;
587 587
588 if (!(input = data)) return; 588 if (!(input = data)) return;
589 589
@@ -603,7 +603,7 @@ _ecore_wl_dnd_selection(void *data, struct wl_data_device *data_device EINA_UNUS
603void 603void
604_ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source) 604_ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source)
605{ 605{
606 LOGFN(__FILE__, __LINE__, __FUNCTION__); 606 LOGFN;
607 607
608 if (!source) return; 608 if (!source) return;
609 source->refcount--; 609 source->refcount--;
@@ -626,7 +626,7 @@ _ecore_wl_dnd_selection_data_receive(Ecore_Wl_Dnd_Source *source, const char *ty
626 struct _dnd_source *read_source = NULL; 626 struct _dnd_source *read_source = NULL;
627 int p[2]; 627 int p[2];
628 628
629 LOGFN(__FILE__, __LINE__, __FUNCTION__); 629 LOGFN;
630 630
631 if (pipe2(p, O_CLOEXEC) == -1) 631 if (pipe2(p, O_CLOEXEC) == -1)
632 return; 632 return;
@@ -689,7 +689,7 @@ _ecore_wl_dnd_selection_data_read(void *data, Ecore_Fd_Handler *fd_handler EINA_
689 Ecore_Wl_Event_Selection_Data_Ready *event; 689 Ecore_Wl_Event_Selection_Data_Ready *event;
690 Eina_Bool ret; 690 Eina_Bool ret;
691 691
692 LOGFN(__FILE__, __LINE__, __FUNCTION__); 692 LOGFN;
693 693
694 read_source = data; 694 read_source = data;
695 source = read_source->source; 695 source = read_source->source;
@@ -733,7 +733,7 @@ _ecore_wl_dnd_selection_data_ready_cb_free(void *data EINA_UNUSED, void *event)
733{ 733{
734 Ecore_Wl_Event_Selection_Data_Ready *ev; 734 Ecore_Wl_Event_Selection_Data_Ready *ev;
735 735
736 LOGFN(__FILE__, __LINE__, __FUNCTION__); 736 LOGFN;
737 737
738 if (!(ev = event)) return; 738 if (!(ev = event)) return;
739 739
@@ -748,7 +748,7 @@ _ecore_wl_dnd_selection_cb_idle(void *data)
748 struct _dnd_task *task; 748 struct _dnd_task *task;
749 int count, i; 749 int count, i;
750 750
751 LOGFN(__FILE__, __LINE__, __FUNCTION__); 751 LOGFN;
752 752
753 ctx = data; 753 ctx = data;
754 count = epoll_wait(ctx->epoll_fd, ctx->ep, 1, 0); 754 count = epoll_wait(ctx->epoll_fd, ctx->ep, 1, 0);
@@ -772,7 +772,7 @@ _ecore_wl_dnd_source_cb_target(void *data, struct wl_data_source *source EINA_UN
772{ 772{
773 Ecore_Wl_Event_Data_Source_Target *event; 773 Ecore_Wl_Event_Data_Source_Target *event;
774 774
775 LOGFN(__FILE__, __LINE__, __FUNCTION__); 775 LOGFN;
776 if (!data) return; 776 if (!data) return;
777 777
778 if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Data_Source_Target)))) return; 778 if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Data_Source_Target)))) return;
@@ -789,7 +789,7 @@ _ecore_wl_dnd_source_cb_target_free(void *data EINA_UNUSED, void *event)
789{ 789{
790 Ecore_Wl_Event_Data_Source_Target *ev; 790 Ecore_Wl_Event_Data_Source_Target *ev;
791 791
792 LOGFN(__FILE__, __LINE__, __FUNCTION__); 792 LOGFN;
793 793
794 if (!(ev = event)) return; 794 if (!(ev = event)) return;
795 795
@@ -802,7 +802,7 @@ _ecore_wl_dnd_source_cb_send(void *data, struct wl_data_source *source EINA_UNUS
802{ 802{
803 Ecore_Wl_Event_Data_Source_Send *event; 803 Ecore_Wl_Event_Data_Source_Send *event;
804 804
805 LOGFN(__FILE__, __LINE__, __FUNCTION__); 805 LOGFN;
806 806
807 if (!data) return; 807 if (!data) return;
808 808
@@ -820,7 +820,7 @@ _ecore_wl_dnd_source_cb_send_free(void *data EINA_UNUSED, void *event)
820{ 820{
821 Ecore_Wl_Event_Data_Source_Send *ev; 821 Ecore_Wl_Event_Data_Source_Send *ev;
822 822
823 LOGFN(__FILE__, __LINE__, __FUNCTION__); 823 LOGFN;
824 824
825 if (!(ev = event)) return; 825 if (!(ev = event)) return;
826 826
@@ -834,7 +834,7 @@ _ecore_wl_dnd_source_cb_cancelled(void *data, struct wl_data_source *source)
834 Ecore_Wl_Input *input; 834 Ecore_Wl_Input *input;
835 Ecore_Wl_Event_Data_Source_Cancelled *ev; 835 Ecore_Wl_Event_Data_Source_Cancelled *ev;
836 836
837 LOGFN(__FILE__, __LINE__, __FUNCTION__); 837 LOGFN;
838 838
839 if (!(input = data)) return; 839 if (!(input = data)) return;
840 840
@@ -858,7 +858,7 @@ _ecore_wl_dnd_offer_cb_offer(void *data, struct wl_data_offer *data_offer EINA_U
858 Ecore_Wl_Dnd_Source *source; 858 Ecore_Wl_Dnd_Source *source;
859 char **t; 859 char **t;
860 860
861 LOGFN(__FILE__, __LINE__, __FUNCTION__); 861 LOGFN;
862 862
863 if (!(source = data)) return; 863 if (!(source = data)) return;
864 if (!type) return; 864 if (!type) return;