2003-09-23 01:09:32 -07:00
|
|
|
#ifndef _ECORE_IPC_PRIVATE_H
|
|
|
|
#define _ECORE_IPC_PRIVATE_H
|
|
|
|
|
2005-09-05 03:17:08 -07:00
|
|
|
#include "Ecore_Data.h"
|
|
|
|
|
2004-10-21 20:41:49 -07:00
|
|
|
#if USE_OPENSSL
|
|
|
|
#include <openssl/ssl.h>
|
|
|
|
#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_List __list_data;
|
|
|
|
ECORE_MAGIC;
|
|
|
|
Ecore_Con_Client *client;
|
|
|
|
void *data;
|
|
|
|
unsigned char *buf;
|
|
|
|
int buf_size;
|
2004-04-23 00:24:40 -07:00
|
|
|
|
|
|
|
struct {
|
|
|
|
Ecore_Ipc_Msg_Head i, o;
|
|
|
|
} prev;
|
2003-09-23 01:09:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _Ecore_Ipc_Server
|
|
|
|
{
|
|
|
|
Ecore_List __list_data;
|
|
|
|
ECORE_MAGIC;
|
|
|
|
Ecore_Con_Server *server;
|
|
|
|
Ecore_Ipc_Client *clients;
|
|
|
|
void *data;
|
|
|
|
unsigned char *buf;
|
|
|
|
int buf_size;
|
2004-04-23 00:24:40 -07:00
|
|
|
|
|
|
|
struct {
|
|
|
|
Ecore_Ipc_Msg_Head i, o;
|
|
|
|
} prev;
|
2003-09-23 01:09:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|