added utility - E_LIST_HOOK_APPEND 92/72692/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 2 Jun 2016 06:12:59 +0000 (15:12 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 2 Jun 2016 06:12:59 +0000 (15:12 +0900)
Change-Id: If96f062a7984db9e69d10f8abe4e031d68d44437

src/bin/e.h

index 5524ada2815a78ba404e45f2bec1cbd2a0b9e3f5..6d134e0a52771865dc5d1188eb2ae8afa8ae8b50 100644 (file)
@@ -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) \
   {                                                               \