2003-09-23 01:09:32 -07:00
|
|
|
#ifndef _ECORE_IPC_PRIVATE_H
|
|
|
|
#define _ECORE_IPC_PRIVATE_H
|
|
|
|
|
2010-01-04 15:43:16 -08:00
|
|
|
|
2009-12-21 09:32:19 -08:00
|
|
|
extern int _ecore_ipc_log_dom;
|
2010-01-06 16:30:05 -08:00
|
|
|
|
|
|
|
#ifdef ECORE_IPC_DEFAULT_LOG_COLOR
|
|
|
|
# undef ECORE_IPC_DEFAULT_LOG_COLOR
|
|
|
|
#endif
|
|
|
|
#define ECORE_IPC_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
|
|
|
|
|
2009-12-21 09:32:19 -08:00
|
|
|
#ifdef ERR
|
|
|
|
# undef ERR
|
|
|
|
#endif
|
|
|
|
#define ERR(...) EINA_LOG_DOM_ERR(_ecore_ipc_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#ifdef DBG
|
|
|
|
# undef DBG
|
|
|
|
#endif
|
|
|
|
#define DBG(...) EINA_LOG_DOM_DBG(_ecore_ipc_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#ifdef INF
|
|
|
|
# undef INF
|
|
|
|
#endif
|
|
|
|
#define INF(...) EINA_LOG_DOM_INFO(_ecore_ipc_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#ifdef WRN
|
|
|
|
# undef WRN
|
|
|
|
#endif
|
|
|
|
#define WRN(...) EINA_LOG_DOM_WARN(_ecore_ipc_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#ifdef CRIT
|
|
|
|
# undef CRIT
|
|
|
|
#endif
|
|
|
|
#define CRIT(...) EINA_LOG_DOM_CRIT(_ecore_ipc_log_dom, __VA_ARGS__)
|
2005-09-05 03:17:08 -07:00
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
#define ECORE_MAGIC_IPC_SERVER 0x87786556
|
|
|
|
#define ECORE_MAGIC_IPC_CLIENT 0x78875665
|
|
|
|
|
2004-04-23 00:24:40 -07:00
|
|
|
typedef struct _Ecore_Ipc_Msg_Head Ecore_Ipc_Msg_Head;
|
2012-06-04 02:03:04 -07:00
|
|
|
#define ECORE_IPC_TYPE 0x0f
|
|
|
|
#define ECORE_IPC_SSL 0xf0
|
2005-04-02 07:59:55 -08:00
|
|
|
|
2011-05-14 11:30:43 -07:00
|
|
|
#if defined (_MSC_VER) || (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100)
|
|
|
|
# pragma pack(1)
|
|
|
|
# define ECORE_IPC_STRUCT_PACKED
|
|
|
|
#elif defined (__GNUC__) || (defined (__SUNPRO_C) && __SUNPRO_C >= 0x5100)
|
|
|
|
# define ECORE_IPC_STRUCT_PACKED __attribute__((packed))
|
|
|
|
#else
|
|
|
|
# define ECORE_IPC_STRUCT_PACKED
|
|
|
|
#endif
|
|
|
|
|
2005-04-02 07:59:55 -08:00
|
|
|
#ifdef __sgi
|
|
|
|
#pragma pack 4
|
|
|
|
#endif
|
2004-04-23 00:24:40 -07:00
|
|
|
struct _Ecore_Ipc_Msg_Head
|
|
|
|
{
|
|
|
|
int major;
|
|
|
|
int minor;
|
|
|
|
int ref;
|
|
|
|
int ref_to;
|
|
|
|
int response;
|
|
|
|
int size;
|
2011-05-14 11:30:43 -07:00
|
|
|
} ECORE_IPC_STRUCT_PACKED;
|
2005-04-02 07:59:55 -08:00
|
|
|
#ifdef __sgi
|
|
|
|
#pragma pack 0
|
|
|
|
#endif
|
2004-04-23 00:24:40 -07:00
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
struct _Ecore_Ipc_Client
|
|
|
|
{
|
|
|
|
ECORE_MAGIC;
|
|
|
|
Ecore_Con_Client *client;
|
2012-06-06 02:49:24 -07:00
|
|
|
Ecore_Ipc_Server *svr;
|
2003-09-23 01:09:32 -07:00
|
|
|
void *data;
|
|
|
|
unsigned char *buf;
|
|
|
|
int buf_size;
|
2006-03-13 00:50:26 -08:00
|
|
|
int max_buf_size;
|
2004-04-23 00:24:40 -07:00
|
|
|
|
|
|
|
struct {
|
|
|
|
Ecore_Ipc_Msg_Head i, o;
|
|
|
|
} prev;
|
2006-03-19 21:53:12 -08:00
|
|
|
|
|
|
|
int event_count;
|
|
|
|
char delete_me : 1;
|
2003-09-23 01:09:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _Ecore_Ipc_Server
|
|
|
|
{
|
|
|
|
ECORE_MAGIC;
|
|
|
|
Ecore_Con_Server *server;
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
Eina_List *clients;
|
2003-09-23 01:09:32 -07:00
|
|
|
void *data;
|
|
|
|
unsigned char *buf;
|
|
|
|
int buf_size;
|
2006-03-13 00:50:26 -08:00
|
|
|
int max_buf_size;
|
2004-04-23 00:24:40 -07:00
|
|
|
|
|
|
|
struct {
|
|
|
|
Ecore_Ipc_Msg_Head i, o;
|
|
|
|
} prev;
|
2006-03-19 21:53:12 -08:00
|
|
|
|
|
|
|
int event_count;
|
|
|
|
char delete_me : 1;
|
2003-09-23 01:09:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|