summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h3
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c18
2 files changed, 21 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
index dc1088fa43..7acd31e558 100644
--- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
+++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
@@ -22,6 +22,8 @@
22# endif 22# endif
23#endif 23#endif
24 24
25#include <Ecore_Data.h>
26
25/** 27/**
26 * @file Ecore_Ipc.h 28 * @file Ecore_Ipc.h
27 * @brief Ecore inter-process communication functions. 29 * @brief Ecore inter-process communication functions.
@@ -294,6 +296,7 @@ EAPI unsigned long long _ecore_ipc_swap_64(unsigned long long v);
294 EAPI void *ecore_ipc_server_del(Ecore_Ipc_Server *svr); 296 EAPI void *ecore_ipc_server_del(Ecore_Ipc_Server *svr);
295 EAPI void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr); 297 EAPI void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr);
296 EAPI int ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr); 298 EAPI int ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr);
299 EAPI Ecore_List *ecore_ipc_server_clients_get(Ecore_Ipc_Server *svr);
297 /* FIXME: this needs to become an ipc message */ 300 /* FIXME: this needs to become an ipc message */
298 EAPI int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, void *data, int size); 301 EAPI int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, void *data, int size);
299 EAPI void ecore_ipc_server_client_limit_set(Ecore_Ipc_Server *svr, int client_limit, char reject_excess_clients); 302 EAPI void ecore_ipc_server_client_limit_set(Ecore_Ipc_Server *svr, int client_limit, char reject_excess_clients);
diff --git a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
index 827fd23bac..db42e907ca 100644
--- a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
+++ b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
@@ -488,6 +488,24 @@ ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr)
488 return ecore_con_server_connected_get(svr->server); 488 return ecore_con_server_connected_get(svr->server);
489} 489}
490 490
491/**
492 * Retrieves the list of clients for this server.
493 * @param svr The given IPC server.
494 * @return An Ecore_List with the clients.
495 * @ingroup Ecore_IPC_Server_Group
496 */
497EAPI Ecore_List *
498ecore_ipc_server_clients_get(Ecore_Ipc_Server *svr)
499{
500 if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_IPC_SERVER))
501 {
502 ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_IPC_SERVER,
503 "ecore_ipc_server_clients_get");
504 return NULL;
505 }
506 return ecore_con_server_clients_get(svr->server);
507}
508
491#define SVENC(_member) \ 509#define SVENC(_member) \
492 d = _ecore_ipc_dlt_int(msg._member, svr->prev.o._member, &md); \ 510 d = _ecore_ipc_dlt_int(msg._member, svr->prev.o._member, &md); \
493 if (md >= DLT_SET) \ 511 if (md >= DLT_SET) \