Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_ipc_handlers.h e_ipc_handlers_list.h Log Message: Add/delete profiles. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.92 retrieving revision 1.93 diff -u -3 -r1.92 -r1.93 --- e_ipc_handlers.h 28 Sep 2005 22:47:07 -0000 1.92 +++ e_ipc_handlers.h 9 Oct 2005 19:10:00 -0000 1.93 @@ -4806,8 +4806,6 @@ #undef HDL /****************************************************************************/ - -/****************************************************************************/ #define HDL E_IPC_OP_PROFILE_SET #if (TYPE == E_REMOTE_OPTIONS) OP("-default-profile-set", 1, "Set the default configuration profile to OPT1", 0, HDL) @@ -4826,7 +4824,7 @@ #elif (TYPE == E_REMOTE_IN) #endif #undef HDL - + /****************************************************************************/ #define HDL E_IPC_OP_PROFILE_GET #if (TYPE == E_REMOTE_OPTIONS) @@ -6350,3 +6348,35 @@ #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 =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers_list.h,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- e_ipc_handlers_list.h 28 Sep 2005 22:47:07 -0000 1.31 +++ e_ipc_handlers_list.h 9 Oct 2005 19:10:00 -0000 1.32 @@ -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 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs