You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

155 lines
5.4 KiB

#ifdef E_TYPEDEFS
#ifdef USE_IPC
typedef struct _E_Ipc_Int E_Ipc_Int;
typedef struct _E_Ipc_Double E_Ipc_Double;
typedef struct _E_Ipc_2Int E_Ipc_2Int;
typedef struct _E_Ipc_List E_Ipc_List;
typedef struct _E_Ipc_Str E_Ipc_Str;
typedef struct _E_Ipc_2Str E_Ipc_2Str;
typedef struct _E_Ipc_Str_Int E_Ipc_Str_Int;
typedef struct _E_Ipc_Str_Int_List E_Ipc_Str_Int_List;
typedef struct _E_Ipc_2Str_Int E_Ipc_2Str_Int;
typedef struct _E_Ipc_2Str_Int_List E_Ipc_2Str_Int_List;
typedef struct _E_Ipc_4Int_2Str E_Ipc_4Int_2Str;
typedef struct _E_Ipc_5Int_2Str E_Ipc_5Int_2Str;
typedef struct _E_Ipc_3Int_4Str E_Ipc_3Int_4Str;
typedef struct _E_Ipc_3Int_3Str E_Ipc_3Int_3Str;
typedef struct _E_Ipc_Str_4Int E_Ipc_Str_4Int;
#endif
#else
#ifndef E_IPC_CODEC_H
#define E_IPC_CODEC_H
#ifdef USE_IPC
struct _E_Ipc_Int
{
int val;
};
struct _E_Ipc_Double
{
double val;
};
struct _E_Ipc_2Int
{
int val1, val2;
};
struct _E_Ipc_List
{
Eina_List *list;
};
struct _E_Ipc_Str
{
char *str;
};
struct _E_Ipc_2Str
{
char *str1, *str2;
};
struct _E_Ipc_Str_Int
{
char *str;
int val;
};
struct _E_Ipc_2Str_Int
{
char *str1, *str2;
int val;
};
struct _E_Ipc_4Int_2Str
{
int val1, val2, val3, val4;
char *str1, *str2;
};
struct _E_Ipc_5Int_2Str
{
int val1, val2, val3, val4, val5;
char *str1, *str2;
};
struct _E_Ipc_3Int_4Str
{
int val1, val2, val3;
char *str1, *str2, *str3, *str4;
};
struct _E_Ipc_3Int_3Str
{
int val1, val2, val3;
char *str1, *str2, *str3;
};
struct _E_Ipc_Str_4Int
{
char *str;
int val1, val2, val3, val4;
};
EINTERN int e_ipc_codec_init(void);
EINTERN void e_ipc_codec_shutdown(void);
E_API int e_ipc_codec_int_dec(char *data, int bytes, int *dest);
E_API void *e_ipc_codec_int_enc(int val, int *size_ret);
E_API int e_ipc_codec_double_dec(char *data, int bytes, double *dest);
E_API void *e_ipc_codec_double_enc(double val, int *size_ret);
E_API int e_ipc_codec_2int_dec(char *data, int bytes, int *dest, int *dest2x);
E_API void *e_ipc_codec_2int_enc(int val1, int val2, int *size_ret);
E_API int e_ipc_codec_str_dec(char *data, int bytes, char **dest);
E_API void *e_ipc_codec_str_enc(const char *str, int *size_ret);
E_API int e_ipc_codec_str_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_str_list_enc(Eina_List *list, int *size_ret);
E_API int e_ipc_codec_2str_dec(char *data, int bytes, E_Ipc_2Str **dest);
E_API void *e_ipc_codec_2str_enc(const char *str1, const char *str2, int *size_ret);
E_API int e_ipc_codec_2str_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_2str_list_enc(Eina_List *list, int *size_ret);
E_API int e_ipc_codec_str_int_dec(char *data, int bytes, E_Ipc_Str_Int **dest);
E_API void *e_ipc_codec_str_int_enc(const char *str, int val, int *size_ret);
E_API int e_ipc_codec_str_int_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_str_int_list_enc(Eina_List *list, int *size_ret);
E_API int e_ipc_codec_2str_int_dec(char *data, int bytes, E_Ipc_2Str_Int **dest);
E_API void *e_ipc_codec_2str_int_enc(const char *str1, const char *str2, int val, int *size_ret);
E_API int e_ipc_codec_2str_int_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_2str_int_list_enc(Eina_List *list, int *size_ret);
E_API int e_ipc_codec_4int_2str_dec(char *data, int bytes, E_Ipc_4Int_2Str **dest);
E_API void *e_ipc_codec_4int_2str_enc(int val1, int val2, int val3, int val4, const char *str1, const char *str2, int *size_ret);
E_API int e_ipc_codec_4int_2str_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_4int_2str_list_enc(Eina_List *list, int *size_ret);
E_API int e_ipc_codec_5int_2str_dec(char *data, int bytes, E_Ipc_5Int_2Str **dest);
E_API void *e_ipc_codec_5int_2str_enc(int val1, int val2, int val3, int val4, int val5, const char *str1, const char *str2, int *size_ret);
E_API int e_ipc_codec_5int_2str_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_5int_2str_list_enc(Eina_List *list, int *size_ret);
E_API int e_ipc_codec_3int_4str_dec(char *data, int bytes, E_Ipc_3Int_4Str **dest);
E_API void *e_ipc_codec_3int_4str_enc(int val1, int val2, int val3, const char *str1, const char *str2, const char *str3, const char *str4, int *size_ret);
E_API int e_ipc_codec_3int_4str_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_3int_4str_list_enc(Eina_List *list, int *size_ret);
E_API int e_ipc_codec_3int_3str_dec(char *data, int bytes, E_Ipc_3Int_3Str **dest);
E_API void *e_ipc_codec_3int_3str_enc(int val1, int val2, int val3, const char *str1, const char *str2, const char *str3, int *size_ret);
E_API int e_ipc_codec_3int_3str_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_3int_3str_list_enc(Eina_List *list, int *size_ret);
E_API int e_ipc_codec_str_4int_dec(char *data, int bytes, E_Ipc_Str_4Int **dest);
E_API void *e_ipc_codec_str_4int_enc(const char *str1, int val1, int val2, int val3, int val4, int *size_ret);
E_API int e_ipc_codec_str_4int_list_dec(char *data, int bytes, Eina_List **dest);
E_API void *e_ipc_codec_str_4int_list_enc(Eina_List *list, int *size_ret);
#endif
#endif
#endif