export the restart call to libe - just in case

SVN revision: 13767
This commit is contained in:
handyande 2005-03-17 13:55:20 +00:00 committed by handyande
parent 0080605d42
commit 4b94b1ad39
2 changed files with 23 additions and 0 deletions

View File

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

View File

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