Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_ipc.c e_ipc_handlers.h
Log Message:
bg get ipc
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- e_ipc.c 31 May 2005 03:17:40 -0000 1.33
+++ e_ipc.c 31 May 2005 03:26:01 -0000 1.34
@@ -78,23 +78,6 @@
#undef TYPE
/* here to steal from to port over to the new e_ipc_handlers.h */
#if 0
- case E_IPC_OP_BG_GET:
- {
- void *data;
- int bytes;
-
- data = e_ipc_codec_str_enc(e_config->desktop_default_background,
&bytes);
- if (data)
- {
- ecore_ipc_client_send(e->client,
- E_IPC_DOMAIN_REPLY,
- E_IPC_OP_BG_GET_REPLY,
- 0/*ref*/, 0/*ref_to*/, 0/*response*/,
- data, bytes);
- free(data);
- }
- }
- break;
case E_IPC_OP_FONT_AVAILABLE_LIST:
{
E_Font_Available *fa;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_ipc_handlers.h 31 May 2005 03:17:40 -0000 1.2
+++ e_ipc_handlers.h 31 May 2005 03:26:01 -0000 1.3
@@ -59,7 +59,6 @@
reply_count++; \
} \
break;
-
#define SEND_STRING_INT_LIST(__list, __typ1, __v1, __typ2, __v2, HANDLER) \
case HANDLER: { \
Evas_List *dat = NULL, *l; \
@@ -78,6 +77,15 @@
FREE_LIST(dat); \
} \
break;
+#define SEND_STRING(__str, __op, HANDLER) \
+case HANDLER: { void *data; int bytes; \
+ data = e_ipc_codec_str_enc(__str, &bytes); \
+ if (data) { \
+ ecore_ipc_client_send(e->client, E_IPC_DOMAIN_REPLY, __op, 0, 0, 0,
data, bytes); \
+ free(data); \
+ } \
+} \
+break;
#endif
@@ -244,6 +252,18 @@
#endif
#undef HANDLER
+/****************************************************************************/
+#define HANDLER E_IPC_OP_BG_GET
+#if (TYPE == E_REMOTE_OPTIONS)
+ {"-default-bg-set", 0, "Get the default background edje file path", 1,
HANDLER},
+#elif (TYPE == E_REMOTE_OUT)
+ REQ_NULL(HANDLER);
+#elif (TYPE == E_WM_IN)
+ SEND_STRING(e_config->desktop_default_background,
E_IPC_OP_MODULE_LIST_REPLY, HANDLER);
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HANDLER
+
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs