summaryrefslogtreecommitdiff
path: root/src/bin/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ipc.c')
-rw-r--r--src/bin/ipc.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/bin/ipc.c b/src/bin/ipc.c
index 83b265c..c9b9ee7 100644
--- a/src/bin/ipc.c
+++ b/src/bin/ipc.c
@@ -1,7 +1,6 @@
1#include "private.h" 1#include "private.h"
2 2
3#include <Ecore.h> 3#include <Ecore.h>
4#include <Ecore_Con.h>
5#include <Ecore_Ipc.h> 4#include <Ecore_Ipc.h>
6#include <Eet.h> 5#include <Eet.h>
7#include "ipc.h" 6#include "ipc.h"
@@ -172,19 +171,6 @@ ipc_instance_new_func_set(void (*func) (Ipc_Instance *inst))
172 func_new_inst = func; 171 func_new_inst = func;
173} 172}
174 173
175void
176ipc_instance_conn_free(void)
177{
178 char *hash = _ipc_hash_get();
179 char *address = ecore_con_local_path_new(EINA_FALSE,
180 hash,
181 0);
182 errno = 0;
183 unlink(address);
184 ERR("unlinking: '%s': %s", address, strerror(errno));
185 free(address);
186}
187
188Eina_Bool 174Eina_Bool
189ipc_instance_add(Ipc_Instance *inst) 175ipc_instance_add(Ipc_Instance *inst)
190{ 176{
@@ -192,7 +178,7 @@ ipc_instance_add(Ipc_Instance *inst)
192 void *data; 178 void *data;
193 char *hash = _ipc_hash_get(); 179 char *hash = _ipc_hash_get();
194 Ecore_Ipc_Server *ipcsrv; 180 Ecore_Ipc_Server *ipcsrv;
195 181
196 if (!hash) return EINA_FALSE; 182 if (!hash) return EINA_FALSE;
197 data = eet_data_descriptor_encode(new_inst_edd, inst, &size); 183 data = eet_data_descriptor_encode(new_inst_edd, inst, &size);
198 if (!data) 184 if (!data)
@@ -200,7 +186,6 @@ ipc_instance_add(Ipc_Instance *inst)
200 free(hash); 186 free(hash);
201 return EINA_FALSE; 187 return EINA_FALSE;
202 } 188 }
203
204 ipcsrv = ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, hash, 0, NULL); 189 ipcsrv = ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, hash, 0, NULL);
205 if (ipcsrv) 190 if (ipcsrv)
206 { 191 {
@@ -211,10 +196,6 @@ ipc_instance_add(Ipc_Instance *inst)
211 ecore_ipc_server_del(ipcsrv); 196 ecore_ipc_server_del(ipcsrv);
212 return EINA_TRUE; 197 return EINA_TRUE;
213 } 198 }
214 else
215 {
216 DBG("connect failed");
217 }
218 free(data); 199 free(data);
219 free(hash); 200 free(hash);
220 return EINA_FALSE; 201 return EINA_FALSE;