Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_ipc_handlers.h e_ipc_handlers_list.h Log Message: Enlightenment_remote commands for logout, hibernate, reboot, and suspend. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.140 retrieving revision 1.141 diff -u -3 -r1.140 -r1.141 --- e_ipc_handlers.h 17 Dec 2006 11:24:59 -0000 1.140 +++ e_ipc_handlers.h 22 Dec 2006 10:55:25 -0000 1.141 @@ -4845,9 +4845,7 @@ { Evas_List *m; E_Manager *man; - E_Action - *act - ; + E_Action *act; man = NULL; @@ -7748,5 +7746,73 @@ START_INT(val, HDL); printf("REPLY: %d\n", val); END_INT; +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_LOGOUT +#if (TYPE == E_REMOTE_OPTIONS) + OP("-logout", 0, "Logout your user", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + GENERIC(HDL); + E_Action *act; + act = e_action_find("logout"); + if (act && act->func.go) + act->func.go(NULL, NULL); + END_GENERIC(); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_HIBERNATE +#if (TYPE == E_REMOTE_OPTIONS) + OP("-hibernate", 0, "Hibernate the computer", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + GENERIC(HDL); + E_Action *act; + act = e_action_find("hibernate"); + if (act && act->func.go) + act->func.go(NULL, NULL); + END_GENERIC(); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_REBOOT +#if (TYPE == E_REMOTE_OPTIONS) + OP("-reboot", 0, "Reboot the computer", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + GENERIC(HDL); + E_Action *act; + act = e_action_find("reboot"); + if (act && act->func.go) + act->func.go(NULL, NULL); + END_GENERIC(); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_SUSPEND +#if (TYPE == E_REMOTE_OPTIONS) + OP("-suspend", 0, "Suspend the computer", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + GENERIC(HDL); + E_Action *act; + act = e_action_find("suspend"); + if (act && act->func.go) + act->func.go(NULL, NULL); + END_GENERIC(); +#elif (TYPE == E_REMOTE_IN) #endif #undef HDL =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers_list.h,v retrieving revision 1.52 retrieving revision 1.53 diff -u -3 -r1.52 -r1.53 --- e_ipc_handlers_list.h 16 Dec 2006 21:28:46 -0000 1.52 +++ e_ipc_handlers_list.h 22 Dec 2006 10:55:25 -0000 1.53 @@ -408,3 +408,8 @@ #define E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_SET 372 #define E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_GET 373 #define E_IPC_OP_REMEMBER_INTERNAL_WINDOWS_GET_REPLY 374 + +#define E_IPC_OP_LOGOUT 375 +#define E_IPC_OP_HIBERNATE 376 +#define E_IPC_OP_REBOOT 377 +#define E_IPC_OP_SUSPEND 378 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs