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
|
|
|
|
2008-10-30 08:26:11 -07:00
|
|
|
#if USE_GNUTLS_OPENSSL
|
|
|
|
# include <gnutls/openssl.h>
|
|
|
|
#elif USE_OPENSSL
|
|
|
|
# include <openssl/ssl.h>
|
2004-10-21 20:41:49 -07:00
|
|
|
#endif
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
#define ECORE_MAGIC_IPC_SERVER 0x87786556
|
|
|
|
#define ECORE_MAGIC_IPC_CLIENT 0x78875665
|
|
|
|
|
|
|
|
typedef struct _Ecore_Ipc_Client Ecore_Ipc_Client;
|
|
|
|
typedef struct _Ecore_Ipc_Server Ecore_Ipc_Server;
|
2004-04-23 00:24:40 -07:00
|
|
|
typedef struct _Ecore_Ipc_Msg_Head Ecore_Ipc_Msg_Head;
|
|
|
|
|
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;
|
2005-04-02 07:59:55 -08:00
|
|
|
}
|
|
|
|
#ifdef _GNU_C_
|
|
|
|
__attribute__ ((packed));
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
#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;
|
|
|
|
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;
|
|
|
|
Eina_List *client_list;
|
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
|