summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2003-09-23 08:09:32 +0000
committerCarsten Haitzler <raster@rasterman.com>2003-09-23 08:09:32 +0000
commita5c2425084f670998654b7cf002d961dce963e82 (patch)
tree26bb48a4db414be854a6028c43364c23a02b4d3b /legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
parentcddaadb4477f3cc1b36d4f4fe68ba1f6abfa8a3d (diff)
damn you salizar! damn you!
errr. i mean. ecore moves to HEAD! SVN revision: 7475
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h105
1 files changed, 105 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
new file mode 100644
index 0000000000..9c01e26de6
--- /dev/null
+++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
@@ -0,0 +1,105 @@
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