summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2006-03-10 05:48:46 +0000
committerCarsten Haitzler <raster@rasterman.com>2006-03-10 05:48:46 +0000
commit1785ad3a32500ecb7afefece8a7ddc1874730ad1 (patch)
treea0bffb21d35af9da5684c9601358cda6bda4b889 /src/bin/e_ipc.c
parent978312dc1074f7567e8a74b88543c36b8daf7caa (diff)
ipc is #defineable (rough for now - maybe able to be undefined and eventually
entirely removed - later though). also config shoudl be able to go up versiosn more easily now. SVN revision: 21160
Diffstat (limited to 'src/bin/e_ipc.c')
-rw-r--r--src/bin/e_ipc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index b6f49f7..223b7ad 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -1,5 +1,6 @@
1#include "e.h" 1#include "e.h"
2 2
3#ifdef USE_IPC
3/* local subsystem functions */ 4/* local subsystem functions */
4static int _e_ipc_cb_client_add(void *data, int type, void *event); 5static int _e_ipc_cb_client_add(void *data, int type, void *event);
5static int _e_ipc_cb_client_del(void *data, int type, void *event); 6static int _e_ipc_cb_client_del(void *data, int type, void *event);
@@ -7,11 +8,13 @@ static int _e_ipc_cb_client_data(void *data, int type, void *event);
7 8
8/* local subsystem globals */ 9/* local subsystem globals */
9static Ecore_Ipc_Server *_e_ipc_server = NULL; 10static Ecore_Ipc_Server *_e_ipc_server = NULL;
11#endif
10 12
11/* externally accessible functions */ 13/* externally accessible functions */
12EAPI int 14EAPI int
13e_ipc_init(void) 15e_ipc_init(void)
14{ 16{
17#ifdef USE_IPC
15 char buf[1024]; 18 char buf[1024];
16 char *disp; 19 char *disp;
17 20
@@ -25,20 +28,24 @@ e_ipc_init(void)
25 ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_DATA, _e_ipc_cb_client_data, NULL); 28 ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_DATA, _e_ipc_cb_client_data, NULL);
26 29
27 e_ipc_codec_init(); 30 e_ipc_codec_init();
31#endif
28 return 1; 32 return 1;
29} 33}
30 34
31EAPI void 35EAPI void
32e_ipc_shutdown(void) 36e_ipc_shutdown(void)
33{ 37{
38#ifdef USE_IPC
34 e_ipc_codec_shutdown(); 39 e_ipc_codec_shutdown();
35 if (_e_ipc_server) 40 if (_e_ipc_server)
36 { 41 {
37 ecore_ipc_server_del(_e_ipc_server); 42 ecore_ipc_server_del(_e_ipc_server);
38 _e_ipc_server = NULL; 43 _e_ipc_server = NULL;
39 } 44 }
45#endif
40} 46}
41 47
48#ifdef USE_IPC
42/* local subsystem globals */ 49/* local subsystem globals */
43static int 50static int
44_e_ipc_cb_client_add(void *data __UNUSED__, int type __UNUSED__, void *event) 51_e_ipc_cb_client_add(void *data __UNUSED__, int type __UNUSED__, void *event)
@@ -79,4 +86,4 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
79 } 86 }
80 return 1; 87 return 1;
81} 88}
82 89#endif \ No newline at end of file