forked from enlightenment/enlightenment
parent
71bdb93fba
commit
2b8c0c4d6e
|
@ -2,9 +2,15 @@
|
||||||
|
|
||||||
#ifdef USE_IPC
|
#ifdef USE_IPC
|
||||||
/* local subsystem functions */
|
/* local subsystem functions */
|
||||||
static Eina_Bool _e_ipc_cb_client_add(void *data __UNUSED__, int type __UNUSED__, void *event);
|
static Eina_Bool _e_ipc_cb_client_add(void *data __UNUSED__,
|
||||||
static Eina_Bool _e_ipc_cb_client_del(void *data __UNUSED__, int type __UNUSED__, void *event);
|
int type __UNUSED__,
|
||||||
static Eina_Bool _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event);
|
void *event);
|
||||||
|
static Eina_Bool _e_ipc_cb_client_del(void *data __UNUSED__,
|
||||||
|
int type __UNUSED__,
|
||||||
|
void *event);
|
||||||
|
static Eina_Bool _e_ipc_cb_client_data(void *data __UNUSED__,
|
||||||
|
int type __UNUSED__,
|
||||||
|
void *event);
|
||||||
|
|
||||||
/* local subsystem globals */
|
/* local subsystem globals */
|
||||||
static Ecore_Ipc_Server *_e_ipc_server = NULL;
|
static Ecore_Ipc_Server *_e_ipc_server = NULL;
|
||||||
|
@ -38,8 +44,8 @@ e_ipc_init(void)
|
||||||
{
|
{
|
||||||
if ((st.st_uid ==
|
if ((st.st_uid ==
|
||||||
getuid()) &&
|
getuid()) &&
|
||||||
((st.st_mode & (S_IFDIR|S_IRWXU|S_IRWXG|S_IRWXO)) ==
|
((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) ==
|
||||||
(S_IRWXU|S_IFDIR)))
|
(S_IRWXU | S_IFDIR)))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -94,7 +100,9 @@ e_ipc_shutdown(void)
|
||||||
#ifdef USE_IPC
|
#ifdef USE_IPC
|
||||||
/* local subsystem globals */
|
/* local subsystem globals */
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_e_ipc_cb_client_add(void *data __UNUSED__, int type __UNUSED__, void *event)
|
_e_ipc_cb_client_add(void *data __UNUSED__,
|
||||||
|
int type __UNUSED__,
|
||||||
|
void *event)
|
||||||
{
|
{
|
||||||
Ecore_Ipc_Event_Client_Add *e;
|
Ecore_Ipc_Event_Client_Add *e;
|
||||||
|
|
||||||
|
@ -104,7 +112,9 @@ _e_ipc_cb_client_add(void *data __UNUSED__, int type __UNUSED__, void *event)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_e_ipc_cb_client_del(void *data __UNUSED__, int type __UNUSED__, void *event)
|
_e_ipc_cb_client_del(void *data __UNUSED__,
|
||||||
|
int type __UNUSED__,
|
||||||
|
void *event)
|
||||||
{
|
{
|
||||||
Ecore_Ipc_Event_Client_Del *e;
|
Ecore_Ipc_Event_Client_Del *e;
|
||||||
|
|
||||||
|
@ -119,7 +129,9 @@ _e_ipc_cb_client_del(void *data __UNUSED__, int type __UNUSED__, void *event)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
|
_e_ipc_cb_client_data(void *data __UNUSED__,
|
||||||
|
int type __UNUSED__,
|
||||||
|
void *event)
|
||||||
{
|
{
|
||||||
Ecore_Ipc_Event_Client_Data *e;
|
Ecore_Ipc_Event_Client_Data *e;
|
||||||
|
|
||||||
|
@ -178,22 +190,28 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_IPC_DOMAIN_THUMB:
|
case E_IPC_DOMAIN_THUMB:
|
||||||
e_thumb_client_data(e);
|
e_thumb_client_data(e);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_IPC_DOMAIN_FM:
|
case E_IPC_DOMAIN_FM:
|
||||||
e_fm2_client_data(e);
|
e_fm2_client_data(e);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_IPC_DOMAIN_INIT:
|
case E_IPC_DOMAIN_INIT:
|
||||||
e_init_client_data(e);
|
e_init_client_data(e);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue