diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_ipc/ecore_ipc_private.h | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_ipc/ecore_ipc_private.h b/libraries/ecore/src/lib/ecore_ipc/ecore_ipc_private.h new file mode 100644 index 0000000..57f7849 --- /dev/null +++ b/libraries/ecore/src/lib/ecore_ipc/ecore_ipc_private.h | |||
@@ -0,0 +1,104 @@ | |||
1 | #ifndef _ECORE_IPC_PRIVATE_H | ||
2 | #define _ECORE_IPC_PRIVATE_H | ||
3 | |||
4 | |||
5 | extern int _ecore_ipc_log_dom; | ||
6 | |||
7 | #ifdef ECORE_IPC_DEFAULT_LOG_COLOR | ||
8 | # undef ECORE_IPC_DEFAULT_LOG_COLOR | ||
9 | #endif | ||
10 | #define ECORE_IPC_DEFAULT_LOG_COLOR EINA_COLOR_BLUE | ||
11 | |||
12 | #ifdef ERR | ||
13 | # undef ERR | ||
14 | #endif | ||
15 | #define ERR(...) EINA_LOG_DOM_ERR(_ecore_ipc_log_dom, __VA_ARGS__) | ||
16 | |||
17 | #ifdef DBG | ||
18 | # undef DBG | ||
19 | #endif | ||
20 | #define DBG(...) EINA_LOG_DOM_DBG(_ecore_ipc_log_dom, __VA_ARGS__) | ||
21 | |||
22 | #ifdef INF | ||
23 | # undef INF | ||
24 | #endif | ||
25 | #define INF(...) EINA_LOG_DOM_INFO(_ecore_ipc_log_dom, __VA_ARGS__) | ||
26 | |||
27 | #ifdef WRN | ||
28 | # undef WRN | ||
29 | #endif | ||
30 | #define WRN(...) EINA_LOG_DOM_WARN(_ecore_ipc_log_dom, __VA_ARGS__) | ||
31 | |||
32 | #ifdef CRIT | ||
33 | # undef CRIT | ||
34 | #endif | ||
35 | #define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_ipc_log_dom, __VA_ARGS__) | ||
36 | |||
37 | #define ECORE_MAGIC_IPC_SERVER 0x87786556 | ||
38 | #define ECORE_MAGIC_IPC_CLIENT 0x78875665 | ||
39 | |||
40 | typedef struct _Ecore_Ipc_Msg_Head Ecore_Ipc_Msg_Head; | ||
41 | |||
42 | |||
43 | #if defined (_MSC_VER) || (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) | ||
44 | # pragma pack(1) | ||
45 | # define ECORE_IPC_STRUCT_PACKED | ||
46 | #elif defined (__GNUC__) || (defined (__SUNPRO_C) && __SUNPRO_C >= 0x5100) | ||
47 | # define ECORE_IPC_STRUCT_PACKED __attribute__((packed)) | ||
48 | #else | ||
49 | # define ECORE_IPC_STRUCT_PACKED | ||
50 | #endif | ||
51 | |||
52 | #ifdef __sgi | ||
53 | #pragma pack 4 | ||
54 | #endif | ||
55 | struct _Ecore_Ipc_Msg_Head | ||
56 | { | ||
57 | int major; | ||
58 | int minor; | ||
59 | int ref; | ||
60 | int ref_to; | ||
61 | int response; | ||
62 | int size; | ||
63 | } ECORE_IPC_STRUCT_PACKED; | ||
64 | #ifdef __sgi | ||
65 | #pragma pack 0 | ||
66 | #endif | ||
67 | |||
68 | struct _Ecore_Ipc_Client | ||
69 | { | ||
70 | ECORE_MAGIC; | ||
71 | Ecore_Con_Client *client; | ||
72 | void *data; | ||
73 | unsigned char *buf; | ||
74 | int buf_size; | ||
75 | int max_buf_size; | ||
76 | |||
77 | struct { | ||
78 | Ecore_Ipc_Msg_Head i, o; | ||
79 | } prev; | ||
80 | |||
81 | int event_count; | ||
82 | char delete_me : 1; | ||
83 | }; | ||
84 | |||
85 | struct _Ecore_Ipc_Server | ||
86 | { | ||
87 | ECORE_MAGIC; | ||
88 | Ecore_Con_Server *server; | ||
89 | Eina_List *clients; | ||
90 | Eina_List *client_list; | ||
91 | void *data; | ||
92 | unsigned char *buf; | ||
93 | int buf_size; | ||
94 | int max_buf_size; | ||
95 | |||
96 | struct { | ||
97 | Ecore_Ipc_Msg_Head i, o; | ||
98 | } prev; | ||
99 | |||
100 | int event_count; | ||
101 | char delete_me : 1; | ||
102 | }; | ||
103 | |||
104 | #endif | ||