From f67835f404ed0aa4a1288bfcbd2f58c3c6ed76f7 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Tue, 9 May 2023 20:39:42 +0900 Subject: [PATCH] e_output: move E_OUTPUT_HOOK_APPEND to e.h file Change-Id: I9f914cdca537a2fa7699ce7d13fc51d29e1f8a0f --- src/bin/e.h | 10 ++++++++++ src/bin/e_comp_screen.c | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/bin/e.h b/src/bin/e.h index 1294fe9..0560e20 100644 --- a/src/bin/e.h +++ b/src/bin/e.h @@ -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) \ { \ diff --git a/src/bin/e_comp_screen.c b/src/bin/e_comp_screen.c index 8d1472c..b888c5f 100644 --- a/src/bin/e_comp_screen.c +++ b/src/bin/e_comp_screen.c @@ -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) { -- 2.7.4