From: Doyoun Kang Date: Thu, 2 Jun 2016 06:12:59 +0000 (+0900) Subject: added utility - E_LIST_HOOK_APPEND X-Git-Tag: submit/tizen/20160602.104157~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32e9f85da5ca3084736c759f435c1df26b0b55f5;p=platform%2Fupstream%2Fenlightenment.git added utility - E_LIST_HOOK_APPEND Change-Id: If96f062a7984db9e69d10f8abe4e031d68d44437 --- diff --git a/src/bin/e.h b/src/bin/e.h index 5524ada281..6d134e0a52 100644 --- a/src/bin/e.h +++ b/src/bin/e.h @@ -230,6 +230,16 @@ typedef struct _E_Rect E_Rect; } \ while (0) +#define E_LIST_HOOK_APPEND(list, type, callback, data) \ + do \ + { \ + E_Client_Hook *_ch; \ + _ch = e_client_hook_add(type, callback, data); \ + assert(_ch); \ + list = eina_list_append(list, _ch); \ + } \ + 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) \ { \