forked from enlightenment/enlightenment
Fixups for bg_get - learning new IPC code
SVN revision: 15045
This commit is contained in:
parent
a8a42aac77
commit
c2bbedc6ae
|
@ -291,7 +291,7 @@ break;
|
|||
#elif (TYPE == E_REMOTE_OUT)
|
||||
REQ_NULL(HDL);
|
||||
#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)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
|
|
@ -9,6 +9,8 @@ include_HEADERS = E.h
|
|||
|
||||
libe_la_SOURCES= \
|
||||
e_main.c \
|
||||
e.h \
|
||||
../bin/e_ipc_codec.c \
|
||||
e_private.h
|
||||
|
||||
libe_la_LIBADD = @ecore_libs@
|
||||
|
|
|
@ -98,6 +98,7 @@ e_init(const char* display)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* FIXME */ e_ipc_codec_init();
|
||||
/* setup e ipc service */
|
||||
if (!_e_ipc_init(disp))
|
||||
{
|
||||
|
@ -126,6 +127,7 @@ e_init(const char* display)
|
|||
int
|
||||
e_shutdown(void)
|
||||
{
|
||||
e_ipc_codec_shutdown();
|
||||
_e_ipc_shutdown();
|
||||
ecore_ipc_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:
|
||||
{
|
||||
E_Response_Background_Get *res;
|
||||
char *str = NULL;
|
||||
|
||||
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);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue