mac mcgarry's ipc action patch :)

SVN revision: 15679
This commit is contained in:
Carsten Haitzler 2005-07-09 01:00:44 +00:00
parent 29b108e622
commit d5dd15c1e0
2 changed files with 36 additions and 0 deletions

View File

@ -4019,6 +4019,41 @@ break;
#endif
#undef HDL
/****************************************************************************/
#define HDL E_IPC_OP_EXEC_ACTION
#if (TYPE == E_REMOTE_OPTIONS)
OP("-exec-action", 2, "Executes an action given the name (OPT1) and a string of parameters (OPT2).", 0, HDL)
#elif (TYPE == E_REMOTE_OUT)
REQ_2STRING(params[0], params[1], HDL);
#elif (TYPE == E_WM_IN)
STRING2(actionName, paramList, e_2str, HDL);
{
Evas_List *m;
E_Manager *man;
E_Action
*act
;
man = NULL;
m = e_manager_list();
if (m) {
man = m->data;
if (man) {
act = e_action_find(actionName);
if (act && act->func.go) {
act->func.go(E_OBJECT(man), paramList);
}
}
}
}
END_STRING2(e_2str)
#elif (TYPE == E_REMOTE_IN)
#endif
#undef HDL
#if 0
}
#endif

View File

@ -196,3 +196,4 @@
#define E_IPC_OP_FOCUS_SETTING_SET 196
#define E_IPC_OP_FOCUS_SETTING_GET 197
#define E_IPC_OP_FOCUS_SETTING_GET_REPLY 198
#define E_IPC_OP_EXEC_ACTION 199