Enlightenment_remote commands for logout, hibernate, reboot, and suspend.

SVN revision: 27544
This commit is contained in:
Christopher Michael 2006-12-22 10:55:25 +00:00
parent 58f817e107
commit 650dedbb5b
2 changed files with 74 additions and 3 deletions

View File

@ -4845,9 +4845,7 @@ break;
{
Evas_List *m;
E_Manager *man;
E_Action
*act
;
E_Action *act;
man = NULL;
@ -7750,3 +7748,71 @@ break;
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

View File

@ -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