Fixups for bg_get - learning new IPC code

SVN revision: 15045
This commit is contained in:
handyande 2005-06-01 14:27:18 +00:00 committed by handyande
parent a8a42aac77
commit c2bbedc6ae
3 changed files with 11 additions and 2 deletions

View File

@ -291,7 +291,7 @@ break;
#elif (TYPE == E_REMOTE_OUT) #elif (TYPE == E_REMOTE_OUT)
REQ_NULL(HDL); REQ_NULL(HDL);
#elif (TYPE == E_WM_IN) #elif (TYPE == E_WM_IN)
SEND_STRING(e_config->desktop_default_background, E_IPC_OP_MODULE_LIST_REPLY, HDL); SEND_STRING(e_config->desktop_default_background, E_IPC_OP_BG_GET_REPLY, HDL);
#elif (TYPE == E_REMOTE_IN) #elif (TYPE == E_REMOTE_IN)
#endif #endif
#undef HDL #undef HDL

View File

@ -9,6 +9,8 @@ include_HEADERS = E.h
libe_la_SOURCES= \ libe_la_SOURCES= \
e_main.c \ e_main.c \
e.h \
../bin/e_ipc_codec.c \
e_private.h e_private.h
libe_la_LIBADD = @ecore_libs@ libe_la_LIBADD = @ecore_libs@

View File

@ -98,6 +98,7 @@ e_init(const char* display)
return 0; return 0;
} }
/* FIXME */ e_ipc_codec_init();
/* setup e ipc service */ /* setup e ipc service */
if (!_e_ipc_init(disp)) if (!_e_ipc_init(disp))
{ {
@ -126,6 +127,7 @@ e_init(const char* display)
int int
e_shutdown(void) e_shutdown(void)
{ {
e_ipc_codec_shutdown();
_e_ipc_shutdown(); _e_ipc_shutdown();
ecore_ipc_shutdown(); ecore_ipc_shutdown();
ecore_shutdown(); ecore_shutdown();
@ -356,9 +358,14 @@ _e_cb_server_data(void *data __UNUSED__, int type, void *event)
case E_IPC_OP_BG_GET_REPLY: case E_IPC_OP_BG_GET_REPLY:
{ {
E_Response_Background_Get *res; E_Response_Background_Get *res;
char *str = NULL;
res = calloc(1, sizeof(E_Response_Background_Get)); res = calloc(1, sizeof(E_Response_Background_Get));
res->file = e->data; if (e->data)
{
e_ipc_codec_str_dec(e->data, e->size, &str);
res->file = str;
}
ecore_event_add(E_RESPONSE_BACKGROUND_GET, res, NULL, NULL); ecore_event_add(E_RESPONSE_BACKGROUND_GET, res, NULL, NULL);
} }
break; break;