summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_ipc
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-11-25 05:18:31 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-11-25 05:18:31 +0000
commitfeb5571092babd75eaf9bdbb3213663383c5043a (patch)
tree53887905a7619c70e00f61decfad76e55924e583 /legacy/ecore/src/lib/ecore_ipc
parente984d6b4fb2670b0f63c039e71a6098962e4ae1c (diff)
hidden symbol support
SVN revision: 12252
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h49
1 files changed, 34 insertions, 15 deletions
diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
index 407c6a3575..ecb9c1c220 100644
--- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
+++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
@@ -1,6 +1,23 @@
1#ifndef _ECORE_IPC_H 1#ifndef _ECORE_IPC_H
2#define _ECORE_IPC_H 2#define _ECORE_IPC_H
3 3
4#ifdef EAPI
5#undef EAPI
6#endif
7#ifdef WIN32
8# ifdef BUILDING_DLL
9# define EAPI __declspec(dllexport)
10# else
11# define EAPI __declspec(dllimport)
12# endif
13#else
14# ifdef GCC_HASCLASSVISIBILITY
15# define EAPI __attribute__ ((visibility("default")))
16# else
17# define EAPI
18# endif
19#endif
20
4/** 21/**
5 * @file Ecore_Ipc.h 22 * @file Ecore_Ipc.h
6 * @brief Ecore inter-process communication functions. 23 * @brief Ecore inter-process communication functions.
@@ -83,29 +100,31 @@ extern "C" {
83 extern int ECORE_IPC_EVENT_CLIENT_DATA; 100 extern int ECORE_IPC_EVENT_CLIENT_DATA;
84 extern int ECORE_IPC_EVENT_SERVER_DATA; 101 extern int ECORE_IPC_EVENT_SERVER_DATA;
85 102
86 int ecore_ipc_init(void); 103 EAPI int ecore_ipc_init(void);
87 int ecore_ipc_shutdown(void); 104 EAPI int ecore_ipc_shutdown(void);
88 105
89 /* FIXME: need to add protocol type parameter */ 106 /* FIXME: need to add protocol type parameter */
90 Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, char *name, int port, const void *data); 107 EAPI Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, char *name, int port, const void *data);
91 108
92 /* FIXME: need to add protocol type parameter */ 109 /* FIXME: need to add protocol type parameter */
93 Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data); 110 EAPI Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data);
94 void *ecore_ipc_server_del(Ecore_Ipc_Server *svr); 111 EAPI void *ecore_ipc_server_del(Ecore_Ipc_Server *svr);
95 void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr); 112 EAPI void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr);
96 int ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr); 113 EAPI int ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr);
97 /* FIXME: this needs to become an ipc message */ 114 /* FIXME: this needs to become an ipc message */
98 int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, void *data, int size); 115 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);
99 116
100 /* FIXME: this needs to become an ipc message */ 117 /* FIXME: this needs to become an ipc message */
101 int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, void *data, int size); 118 EAPI int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, void *data, int size);
102 Ecore_Ipc_Server *ecore_ipc_client_server_get(Ecore_Ipc_Client *cl); 119 EAPI Ecore_Ipc_Server *ecore_ipc_client_server_get(Ecore_Ipc_Client *cl);
103 void *ecore_ipc_client_del(Ecore_Ipc_Client *cl); 120 EAPI void *ecore_ipc_client_del(Ecore_Ipc_Client *cl);
104 void ecore_ipc_client_data_set(Ecore_Ipc_Client *cl, const void *data); 121 EAPI void ecore_ipc_client_data_set(Ecore_Ipc_Client *cl, const void *data);
105 void *ecore_ipc_client_data_get(Ecore_Ipc_Client *cl); 122 EAPI void *ecore_ipc_client_data_get(Ecore_Ipc_Client *cl);
123
124 EAPI int ecore_ipc_ssl_available_get(void);
125 /* FIXME: need to add a callback to "ok" large ipc messages greater than */
126 /* a certain size (seurity/DOS attack safety) */
106 127
107 int ecore_ipc_ssl_available_get(void);
108
109#ifdef __cplusplus 128#ifdef __cplusplus
110} 129}
111#endif 130#endif