ecrustified

SVN revision: 60819
This commit is contained in:
Mike Blumenkrantz 2011-06-29 14:13:34 +00:00
parent 71bdb93fba
commit 2b8c0c4d6e
1 changed files with 102 additions and 84 deletions

View File

@ -2,9 +2,15 @@
#ifdef USE_IPC
/* 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_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);
static Eina_Bool _e_ipc_cb_client_add(void *data __UNUSED__,
int type __UNUSED__,
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 */
static Ecore_Ipc_Server *_e_ipc_server = NULL;
@ -38,8 +44,8 @@ e_ipc_init(void)
{
if ((st.st_uid ==
getuid()) &&
((st.st_mode & (S_IFDIR|S_IRWXU|S_IRWXG|S_IRWXO)) ==
(S_IRWXU|S_IFDIR)))
((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) ==
(S_IRWXU | S_IFDIR)))
{
}
else
@ -94,7 +100,9 @@ e_ipc_shutdown(void)
#ifdef USE_IPC
/* local subsystem globals */
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;
@ -104,7 +112,9 @@ _e_ipc_cb_client_add(void *data __UNUSED__, int type __UNUSED__, void *event)
}
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;
@ -119,7 +129,9 @@ _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)
_e_ipc_cb_client_data(void *data __UNUSED__,
int type __UNUSED__,
void *event)
{
Ecore_Ipc_Event_Client_Data *e;
@ -178,22 +190,28 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
}
}
break;
default:
break;
}
break;
case E_IPC_DOMAIN_THUMB:
e_thumb_client_data(e);
break;
case E_IPC_DOMAIN_FM:
e_fm2_client_data(e);
break;
case E_IPC_DOMAIN_INIT:
e_init_client_data(e);
break;
default:
break;
}
return 1;
}
#endif