e_output: move E_OUTPUT_HOOK_APPEND to e.h file 20/292620/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 9 May 2023 11:39:42 +0000 (20:39 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 10 May 2023 06:59:53 +0000 (15:59 +0900)
Change-Id: I9f914cdca537a2fa7699ce7d13fc51d29e1f8a0f

src/bin/e.h
src/bin/e_comp_screen.c

index 1294fe9..0560e20 100644 (file)
@@ -296,6 +296,16 @@ typedef struct _E_Rect         E_Rect;
     } \
   while (0)
 
+#define E_OUTPUT_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Output_Hook *_oh; \
+       _oh = e_output_hook_add(type, callback, data); \
+       assert(_oh); \
+       list = eina_list_append(list, _oh); \
+    } \
+  while (0)
+
 # define E_CLAMP(x, min, max) (x < min ? min : (x > max ? max : x))
 # define E_RECTS_CLIP_TO_RECT(_x, _y, _w, _h, _cx, _cy, _cw, _ch) \
   {                                                               \
index 8d1472c..b888c5f 100644 (file)
@@ -1138,17 +1138,6 @@ e_comp_screen_e_screens_get(E_Comp_Screen *e_comp_screen)
    return e_comp_screen->e_screens;
 }
 
-#undef E_OUTPUT_HOOK_APPEND
-#define E_OUTPUT_HOOK_APPEND(l, t, cb, d) \
-  do                                      \
-    {                                     \
-       E_Output_Hook *_h;                 \
-       _h = e_output_hook_add(t, cb, d);  \
-       assert(_h);                        \
-       l = eina_list_append(l, _h);       \
-    }                                     \
-  while (0)
-
 static void
 _e_comp_screen_cb_output_connect_status_change(void *data, E_Output *output)
 {