summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-09-25 06:03:38 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-09-25 06:03:38 +0000
commit1f3091dbb3d182801597c05ad81ae321c18ba1e2 (patch)
tree64e3832e32d14dabd7ec9e183ae17b37498361ec /legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
parentcdacbb84bbb0cfea6834eb12f4b86afe93c59a47 (diff)
formatting
SVN revision: 52725
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h198
1 files changed, 99 insertions, 99 deletions
diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
index e25f741035..8011539f95 100644
--- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
+++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
@@ -40,8 +40,8 @@ extern "C" {
40/** 40/**
41 * Macros used for generic data packing 41 * Macros used for generic data packing
42 */ 42 */
43EAPI unsigned short _ecore_ipc_swap_16(unsigned short v); 43EAPI unsigned short _ecore_ipc_swap_16(unsigned short v);
44EAPI unsigned int _ecore_ipc_swap_32(unsigned int v); 44EAPI unsigned int _ecore_ipc_swap_32(unsigned int v);
45EAPI unsigned long long _ecore_ipc_swap_64(unsigned long long v); 45EAPI unsigned long long _ecore_ipc_swap_64(unsigned long long v);
46 46
47#ifdef WORDS_BIGENDIAN 47#ifdef WORDS_BIGENDIAN
@@ -216,108 +216,108 @@ EAPI unsigned long long _ecore_ipc_swap_64(unsigned long long v);
216 } \ 216 } \
217 return d 217 return d
218 218
219 typedef enum _Ecore_Ipc_Type 219typedef enum _Ecore_Ipc_Type
220 { 220{
221 ECORE_IPC_LOCAL_USER, 221 ECORE_IPC_LOCAL_USER,
222 ECORE_IPC_LOCAL_SYSTEM, 222 ECORE_IPC_LOCAL_SYSTEM,
223 ECORE_IPC_REMOTE_SYSTEM, 223 ECORE_IPC_REMOTE_SYSTEM,
224 ECORE_IPC_USE_SSL = 16 224 ECORE_IPC_USE_SSL = 16
225 } Ecore_Ipc_Type; 225} Ecore_Ipc_Type;
226 226
227 typedef struct _Ecore_Ipc_Event_Client_Add Ecore_Ipc_Event_Client_Add; 227typedef struct _Ecore_Ipc_Event_Client_Add Ecore_Ipc_Event_Client_Add;
228 typedef struct _Ecore_Ipc_Event_Client_Del Ecore_Ipc_Event_Client_Del; 228typedef struct _Ecore_Ipc_Event_Client_Del Ecore_Ipc_Event_Client_Del;
229 typedef struct _Ecore_Ipc_Event_Server_Add Ecore_Ipc_Event_Server_Add; 229typedef struct _Ecore_Ipc_Event_Server_Add Ecore_Ipc_Event_Server_Add;
230 typedef struct _Ecore_Ipc_Event_Server_Del Ecore_Ipc_Event_Server_Del; 230typedef struct _Ecore_Ipc_Event_Server_Del Ecore_Ipc_Event_Server_Del;
231 typedef struct _Ecore_Ipc_Event_Client_Data Ecore_Ipc_Event_Client_Data; 231typedef struct _Ecore_Ipc_Event_Client_Data Ecore_Ipc_Event_Client_Data;
232 typedef struct _Ecore_Ipc_Event_Server_Data Ecore_Ipc_Event_Server_Data; 232typedef struct _Ecore_Ipc_Event_Server_Data Ecore_Ipc_Event_Server_Data;
233 233
234 struct _Ecore_Ipc_Event_Client_Add 234struct _Ecore_Ipc_Event_Client_Add
235 { 235{
236 Ecore_Ipc_Client *client; 236 Ecore_Ipc_Client *client;
237 }; 237};
238 238
239 struct _Ecore_Ipc_Event_Client_Del 239struct _Ecore_Ipc_Event_Client_Del
240 { 240{
241 Ecore_Ipc_Client *client; 241 Ecore_Ipc_Client *client;
242 }; 242};
243 243
244 struct _Ecore_Ipc_Event_Server_Add 244struct _Ecore_Ipc_Event_Server_Add
245 { 245{
246 Ecore_Ipc_Server *server; 246 Ecore_Ipc_Server *server;
247 }; 247};
248 248
249 struct _Ecore_Ipc_Event_Server_Del 249struct _Ecore_Ipc_Event_Server_Del
250 { 250{
251 Ecore_Ipc_Server *server; 251 Ecore_Ipc_Server *server;
252 }; 252};
253
254 struct _Ecore_Ipc_Event_Client_Data
255 {
256 Ecore_Ipc_Client *client;
257 /* FIXME: this needs to become an ipc message */
258 int major;
259 int minor;
260 int ref;
261 int ref_to;
262 int response;
263 void *data;
264 int size;
265 };
266
267 struct _Ecore_Ipc_Event_Server_Data
268 {
269 Ecore_Ipc_Server *server;
270 /* FIXME: this needs to become an ipc message */
271 int major;
272 int minor;
273 int ref;
274 int ref_to;
275 int response;
276 void *data;
277 int size;
278 };
279
280 EAPI extern int ECORE_IPC_EVENT_CLIENT_ADD;
281 EAPI extern int ECORE_IPC_EVENT_CLIENT_DEL;
282 EAPI extern int ECORE_IPC_EVENT_SERVER_ADD;
283 EAPI extern int ECORE_IPC_EVENT_SERVER_DEL;
284 EAPI extern int ECORE_IPC_EVENT_CLIENT_DATA;
285 EAPI extern int ECORE_IPC_EVENT_SERVER_DATA;
286
287 EAPI int ecore_ipc_init(void);
288 EAPI int ecore_ipc_shutdown(void);
289
290 /* FIXME: need to add protocol type parameter */
291 EAPI Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, const char *name, int port, const void *data);
292 253
293 /* FIXME: need to add protocol type parameter */ 254struct _Ecore_Ipc_Event_Client_Data
294 EAPI Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data); 255{
295 EAPI void *ecore_ipc_server_del(Ecore_Ipc_Server *svr); 256 Ecore_Ipc_Client *client;
296 EAPI void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr);
297 EAPI Eina_Bool ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr);
298 EAPI Eina_List *ecore_ipc_server_clients_get(Ecore_Ipc_Server *svr);
299 /* FIXME: this needs to become an ipc message */ 257 /* FIXME: this needs to become an ipc message */
300 EAPI int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, const void *data, int size); 258 int major;
301 EAPI void ecore_ipc_server_client_limit_set(Ecore_Ipc_Server *svr, int client_limit, char reject_excess_clients); 259 int minor;
302 EAPI void ecore_ipc_server_data_size_max_set(Ecore_Ipc_Server *srv, int size); 260 int ref;
303 EAPI int ecore_ipc_server_data_size_max_get(Ecore_Ipc_Server *srv); 261 int ref_to;
304 EAPI const char *ecore_ipc_server_ip_get(Ecore_Ipc_Server *svr); 262 int response;
305 EAPI void ecore_ipc_server_flush(Ecore_Ipc_Server *svr); 263 void *data;
306 264 int size;
265};
266
267struct _Ecore_Ipc_Event_Server_Data
268{
269 Ecore_Ipc_Server *server;
307 /* FIXME: this needs to become an ipc message */ 270 /* FIXME: this needs to become an ipc message */
308 EAPI int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, const void *data, int size); 271 int major;
309 EAPI Ecore_Ipc_Server *ecore_ipc_client_server_get(Ecore_Ipc_Client *cl); 272 int minor;
310 EAPI void *ecore_ipc_client_del(Ecore_Ipc_Client *cl); 273 int ref;
311 EAPI void ecore_ipc_client_data_set(Ecore_Ipc_Client *cl, const void *data); 274 int ref_to;
312 EAPI void *ecore_ipc_client_data_get(Ecore_Ipc_Client *cl); 275 int response;
313 EAPI void ecore_ipc_client_data_size_max_set(Ecore_Ipc_Client *cl, int size); 276 void *data;
314 EAPI int ecore_ipc_client_data_size_max_get(Ecore_Ipc_Client *cl); 277 int size;
315 EAPI const char *ecore_ipc_client_ip_get(Ecore_Ipc_Client *cl); 278};
316 EAPI void ecore_ipc_client_flush(Ecore_Ipc_Client *cl);
317 279
318 EAPI int ecore_ipc_ssl_available_get(void); 280EAPI extern int ECORE_IPC_EVENT_CLIENT_ADD;
319 /* FIXME: need to add a callback to "ok" large ipc messages greater than */ 281EAPI extern int ECORE_IPC_EVENT_CLIENT_DEL;
320 /* a certain size (seurity/DOS attack safety) */ 282EAPI extern int ECORE_IPC_EVENT_SERVER_ADD;
283EAPI extern int ECORE_IPC_EVENT_SERVER_DEL;
284EAPI extern int ECORE_IPC_EVENT_CLIENT_DATA;
285EAPI extern int ECORE_IPC_EVENT_SERVER_DATA;
286
287EAPI int ecore_ipc_init(void);
288EAPI int ecore_ipc_shutdown(void);
289
290/* FIXME: need to add protocol type parameter */
291EAPI Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, const char *name, int port, const void *data);
292
293/* FIXME: need to add protocol type parameter */
294EAPI Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data);
295EAPI void *ecore_ipc_server_del(Ecore_Ipc_Server *svr);
296EAPI void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr);
297EAPI Eina_Bool ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr);
298EAPI Eina_List *ecore_ipc_server_clients_get(Ecore_Ipc_Server *svr);
299/* FIXME: this needs to become an ipc message */
300EAPI int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, const void *data, int size);
301EAPI void ecore_ipc_server_client_limit_set(Ecore_Ipc_Server *svr, int client_limit, char reject_excess_clients);
302EAPI void ecore_ipc_server_data_size_max_set(Ecore_Ipc_Server *srv, int size);
303EAPI int ecore_ipc_server_data_size_max_get(Ecore_Ipc_Server *srv);
304EAPI const char *ecore_ipc_server_ip_get(Ecore_Ipc_Server *svr);
305EAPI void ecore_ipc_server_flush(Ecore_Ipc_Server *svr);
306
307/* FIXME: this needs to become an ipc message */
308EAPI int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, const void *data, int size);
309EAPI Ecore_Ipc_Server *ecore_ipc_client_server_get(Ecore_Ipc_Client *cl);
310EAPI void *ecore_ipc_client_del(Ecore_Ipc_Client *cl);
311EAPI void ecore_ipc_client_data_set(Ecore_Ipc_Client *cl, const void *data);
312EAPI void *ecore_ipc_client_data_get(Ecore_Ipc_Client *cl);
313EAPI void ecore_ipc_client_data_size_max_set(Ecore_Ipc_Client *cl, int size);
314EAPI int ecore_ipc_client_data_size_max_get(Ecore_Ipc_Client *cl);
315EAPI const char *ecore_ipc_client_ip_get(Ecore_Ipc_Client *cl);
316EAPI void ecore_ipc_client_flush(Ecore_Ipc_Client *cl);
317
318EAPI int ecore_ipc_ssl_available_get(void);
319/* FIXME: need to add a callback to "ok" large ipc messages greater than */
320/* a certain size (seurity/DOS attack safety) */
321 321
322#ifdef __cplusplus 322#ifdef __cplusplus
323} 323}