forked from enlightenment/enlightenment
parent
32a4c428a6
commit
89c10c7779
|
@ -4805,8 +4805,6 @@ break;
|
|||
#endif
|
||||
#undef HDL
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
#define HDL E_IPC_OP_PROFILE_SET
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
|
@ -4826,7 +4824,7 @@ break;
|
|||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
#define HDL E_IPC_OP_PROFILE_GET
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
|
@ -6350,3 +6348,35 @@ break;
|
|||
#endif
|
||||
#undef HDL
|
||||
|
||||
/****************************************************************************/
|
||||
#define HDL E_IPC_OP_PROFILE_ADD
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
OP("-profile-add", 1, "Add profile named OPT1", 0, HDL)
|
||||
#elif (TYPE == E_REMOTE_OUT)
|
||||
REQ_STRING(params[0], HDL);
|
||||
#elif (TYPE == E_WM_IN)
|
||||
STRING(s, HDL);
|
||||
e_config_profile_add(s);
|
||||
END_STRING(s);
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
||||
/****************************************************************************/
|
||||
#define HDL E_IPC_OP_PROFILE_DEL
|
||||
#if (TYPE == E_REMOTE_OPTIONS)
|
||||
OP("-profile-add", 1, "Delete profile named OPT1", 0, HDL)
|
||||
#elif (TYPE == E_REMOTE_OUT)
|
||||
REQ_STRING(params[0], HDL);
|
||||
#elif (TYPE == E_WM_IN)
|
||||
STRING(s, HDL);
|
||||
if (!strcmp(e_config_profile_get(), s))
|
||||
{
|
||||
printf("Can't delete active profile\n");
|
||||
exit(-1);
|
||||
}
|
||||
e_config_profile_del(s);
|
||||
END_STRING(s);
|
||||
#elif (TYPE == E_REMOTE_IN)
|
||||
#endif
|
||||
#undef HDL
|
||||
|
|
|
@ -306,3 +306,6 @@
|
|||
|
||||
#define E_IPC_OP_ACTION_LIST 294
|
||||
#define E_IPC_OP_ACTION_LIST_REPLY 295
|
||||
|
||||
#define E_IPC_OP_PROFILE_ADD 296
|
||||
#define E_IPC_OP_PROFILE_DEL 297
|
||||
|
|
Loading…
Reference in New Issue