From 1d9469487b89795556dc2c08bbb8999e7e61c1ea Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 25 Aug 2023 13:58:22 +0900 Subject: [PATCH] e: add E_DESK_HOOK_APPEND macro Change-Id: I29ad2486252e2f1646ce1817e31f66fac8e64772 --- src/bin/e.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/e.h b/src/bin/e.h index 62cca61..40452ac 100644 --- a/src/bin/e.h +++ b/src/bin/e.h @@ -316,6 +316,16 @@ typedef struct _E_Rect E_Rect; } \ while (0) +#define E_DESK_HOOK_APPEND(list, type, callback, data) \ + do \ + { \ + E_Desk_Hook *_ph; \ + _ph = e_desk_hook_add(type, callback, data); \ + assert(_ph); \ + list = eina_list_append(list, _ph); \ + } \ + 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) \ { \ -- 2.7.4