From 4b94b1ad397a7819217f910f3518879e96990400 Mon Sep 17 00:00:00 2001 From: handyande Date: Thu, 17 Mar 2005 13:55:20 +0000 Subject: [PATCH] export the restart call to libe - just in case SVN revision: 13767 --- src/lib/E.h | 8 ++++++++ src/lib/e_main.c | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/lib/E.h b/src/lib/E.h index 9f1b0561d..4abedd871 100644 --- a/src/lib/E.h +++ b/src/lib/E.h @@ -39,11 +39,19 @@ extern EAPI int E_RESPONSE_BACKGROUND_GET; extern "C" { #endif + /* library startup and shutdown */ EAPI int e_init (const char *display); EAPI int e_shutdown (void); + + /* E startup and shutdown */ + EAPI void e_restart (void); + + /* E module manipulation */ EAPI void e_module_enabled_set (const char *module, int enable); EAPI void e_module_loaded_set (const char *module, int load); EAPI void e_module_list (void); + + /* E desktop manipulation */ EAPI void e_background_set (const char *bgfile); EAPI void e_background_get (void); diff --git a/src/lib/e_main.c b/src/lib/e_main.c index 1d2316530..3fec7dcbb 100644 --- a/src/lib/e_main.c +++ b/src/lib/e_main.c @@ -110,6 +110,9 @@ e_init(const char* display) return 1; } +/* + * close our connection to E + */ int e_shutdown(void) { @@ -120,6 +123,18 @@ e_shutdown(void) return 1; } +/* actual IPC calls */ +void +e_restart(void) +{ + E_Ipc_Op type; + + type = E_IPC_OP_RESTART; + ecore_ipc_server_send(_e_ipc_server, E_IPC_DOMAIN_REQUEST, type, 0/*ref*/, + 0/*ref_to*/, 0/*response*/, NULL, 0); + +} + void e_module_enabled_set(const char *module, int enable) {