summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-04-06 06:20:39 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-04-06 06:20:39 +0000
commitfd2532624ac6bdc6a7f478c39411bafb2c7c11cc (patch)
treeb81998cdbb26e746c1d86b81bfa3706a6f96769b /legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
parent920d35350915c373d52b1b89f74e5882ba29e18c (diff)
ecore_ipc now supports ssl too
SVN revision: 9620
Diffstat (limited to 'legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h105
1 files changed, 0 insertions, 105 deletions
diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
deleted file mode 100644
index 9c01e26de6..0000000000
--- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
+++ /dev/null
@@ -1,105 +0,0 @@
1#ifndef _ECORE_IPC_H
2#define _ECORE_IPC_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#ifndef _ECORE_IPC_PRIVATE_H
9 typedef void Ecore_Ipc_Server; /**< An IPC connection handle */
10 typedef void Ecore_Ipc_Client; /**< An IPC connection handle */
11#endif
12
13 typedef enum _Ecore_Ipc_Type
14 {
15 ECORE_IPC_LOCAL_USER,
16 ECORE_IPC_LOCAL_SYSTEM,
17 ECORE_IPC_REMOTE_SYSTEM,
18 } Ecore_Ipc_Type;
19
20 typedef struct _Ecore_Ipc_Event_Client_Add Ecore_Ipc_Event_Client_Add;
21 typedef struct _Ecore_Ipc_Event_Client_Del Ecore_Ipc_Event_Client_Del;
22 typedef struct _Ecore_Ipc_Event_Server_Add Ecore_Ipc_Event_Server_Add;
23 typedef struct _Ecore_Ipc_Event_Server_Del Ecore_Ipc_Event_Server_Del;
24 typedef struct _Ecore_Ipc_Event_Client_Data Ecore_Ipc_Event_Client_Data;
25 typedef struct _Ecore_Ipc_Event_Server_Data Ecore_Ipc_Event_Server_Data;
26
27 struct _Ecore_Ipc_Event_Client_Add
28 {
29 Ecore_Ipc_Client *client;
30 };
31
32 struct _Ecore_Ipc_Event_Client_Del
33 {
34 Ecore_Ipc_Client *client;
35 };
36
37 struct _Ecore_Ipc_Event_Server_Add
38 {
39 Ecore_Ipc_Server *server;
40 };
41
42 struct _Ecore_Ipc_Event_Server_Del
43 {
44 Ecore_Ipc_Server *server;
45 };
46
47 struct _Ecore_Ipc_Event_Client_Data
48 {
49 Ecore_Ipc_Client *client;
50 /* FIXME: this needs to become an ipc message */
51 int major;
52 int minor;
53 int ref;
54 int ref_to;
55 int response;
56 void *data;
57 int size;
58 };
59
60 struct _Ecore_Ipc_Event_Server_Data
61 {
62 Ecore_Ipc_Server *server;
63 /* FIXME: this needs to become an ipc message */
64 int major;
65 int minor;
66 int ref;
67 int ref_to;
68 int response;
69 void *data;
70 int size;
71 };
72
73 extern int ECORE_IPC_EVENT_CLIENT_ADD;
74 extern int ECORE_IPC_EVENT_CLIENT_DEL;
75 extern int ECORE_IPC_EVENT_SERVER_ADD;
76 extern int ECORE_IPC_EVENT_SERVER_DEL;
77 extern int ECORE_IPC_EVENT_CLIENT_DATA;
78 extern int ECORE_IPC_EVENT_SERVER_DATA;
79
80 int ecore_ipc_init(void);
81 int ecore_ipc_shutdown(void);
82
83 /* FIXME: need to add protocol type parameter */
84 Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, char *name, int port, const void *data);
85
86 /* FIXME: need to add protocol type parameter */
87 Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data);
88 void *ecore_ipc_server_del(Ecore_Ipc_Server *svr);
89 void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr);
90 int ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr);
91 /* FIXME: this needs to become an ipc message */
92 int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, void *data, int size);
93
94 /* FIXME: this needs to become an ipc message */
95 int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, void *data, int size);
96 Ecore_Ipc_Server *ecore_ipc_client_server_get(Ecore_Ipc_Client *cl);
97 void *ecore_ipc_client_del(Ecore_Ipc_Client *cl);
98 void ecore_ipc_client_data_set(Ecore_Ipc_Client *cl, const void *data);
99 void *ecore_ipc_client_data_get(Ecore_Ipc_Client *cl);
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif