ipc... :)
authorCarsten Haitzler <raster@rasterman.com>
Tue, 6 Mar 2001 20:34:58 +0000 (20:34 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Tue, 6 Mar 2001 20:34:58 +0000 (20:34 +0000)
SVN revision: 4337

AUTHORS
src/Makefile.am
src/ipc.c [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
index 186ceed..cd73268 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1 +1,3 @@
 The Rasterman <raster@rasterman.com>
+Christian Kreibich <cK@whoop.org>, <kreibich@aciri.org>
+Burra <burra@colorado.edu>
index 5a72aac..86f7066 100644 (file)
@@ -17,6 +17,7 @@ exec.c \
 fs.c \
 icccm.c \
 icons.c \
+ipc.c \
 main.c \
 menu.c \
 menudb.c \
diff --git a/src/ipc.c b/src/ipc.c
new file mode 100644 (file)
index 0000000..87a62ba
--- /dev/null
+++ b/src/ipc.c
@@ -0,0 +1,26 @@
+#include "e.h"
+
+void         e_ipc_init(void);
+static char *e_ipc_get_version(char *argv);
+
+void
+e_ipc_init(void)
+{
+  char buf[4096];
+
+  /* unix domain socket file path */
+  sprintf(buf, "%secom", e_config_user_dir());
+
+  /* init ecore ipc */
+  e_ev_ipc_init(buf);
+
+  /* add ipc services or functions clients can use */
+  e_add_ipc_service(0, e_ipc_get_version);
+}
+
+static char 
+*e_ipc_get_version(char *argv)
+{
+  printf("e_ipc_get_version service called\n"); fflush(stdout);
+  return "0.17.0";
+}