From a65eadfd50ac8f935d09534cb0d47d58d2a1e93b Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 17 Mar 2005 01:30:50 +0000 Subject: [PATCH] add -restart to enlightenment_remote SVN revision: 13762 --- src/bin/e_ipc.c | 6 ++++++ src/bin/e_ipc.h | 1 + src/bin/e_remote_main.c | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c index b3d6e073a..edae448f9 100644 --- a/src/bin/e_ipc.c +++ b/src/bin/e_ipc.c @@ -213,6 +213,12 @@ _e_ipc_cb_client_data(void *data, int type, void *event) bg, strlen(bg) + 1); } break; + case E_IPC_OP_RESTART: + { + restart = 1; + ecore_main_loop_quit(); + } + break; default: break; } diff --git a/src/bin/e_ipc.h b/src/bin/e_ipc.h index 4a31c68bf..1911f5e54 100644 --- a/src/bin/e_ipc.h +++ b/src/bin/e_ipc.h @@ -23,6 +23,7 @@ typedef enum _E_Ipc_Op { E_IPC_OP_BG_SET, E_IPC_OP_BG_GET, E_IPC_OP_BG_GET_REPLY, + E_IPC_OP_RESTART, E_IPC_OP_LAST } E_Ipc_Op; diff --git a/src/bin/e_remote_main.c b/src/bin/e_remote_main.c index bd36efac9..511a417e1 100644 --- a/src/bin/e_remote_main.c +++ b/src/bin/e_remote_main.c @@ -48,7 +48,8 @@ E_IPC_Opt_Handler handlers[] = OSTR("-module-enable", "Enable module OPT1 if not enabled", E_IPC_OP_MODULE_ENABLE, 0), OSTR("-module-disable", "Disable module OPT1 if not disabled", E_IPC_OP_MODULE_DISABLE, 0), OREQ("-module-list", "List all loaded modules and their states", E_IPC_OP_MODULE_LIST, 1), - OSTR("-bg-set", "Set the background edje file to be OPT1", E_IPC_OP_BG_SET, 0) + OSTR("-bg-set", "Set the background edje file to be OPT1", E_IPC_OP_BG_SET, 0), + OREQ("-restart", "Restart E17", E_IPC_OP_RESTART, 0) }; /* externally accessible functions */