From 669f31088afbc985814f1d208b3b53d57b62f7a3 Mon Sep 17 00:00:00 2001 From: handyande Date: Thu, 2 Jun 2005 17:43:24 +0000 Subject: [PATCH] Is this a good macro for sending a list? SEND_DIR_LIST(path_modules, E_IPC_OP_MODULES_LIST_REPLY) ... SVN revision: 15063 --- src/bin/e_ipc_handlers.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bin/e_ipc_handlers.h b/src/bin/e_ipc_handlers.h index 702e6f4bf..f2cc7a7ab 100644 --- a/src/bin/e_ipc_handlers.h +++ b/src/bin/e_ipc_handlers.h @@ -126,9 +126,17 @@ break; #define DECODE(__dec) \ if (__dec(e->data, e->size, &dat)) -#endif +#define SEND_DIR_LIST(__pathtype, __replytype) \ + GENERIC(HDL); \ + Evas_List *dir_list; \ + dir_list = e_path_dir_list_get(__pathtype); \ + ENCODE(dir_list, e_ipc_codec_str_list_enc); \ + SEND_DATA(__replytype); \ + END_GENERIC(); +#endif +