forked from enlightenment/enlightenment
33 lines
670 B
C
33 lines
670 B
C
|
/*
|
||
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||
|
*/
|
||
|
#ifdef E_TYPEDEFS
|
||
|
|
||
|
typedef struct _E_Ipc_Int E_Ipc_Int;
|
||
|
typedef struct _E_Ipc_Double E_Ipc_Double;
|
||
|
|
||
|
#else
|
||
|
#ifndef E_IPC_CODEC_H
|
||
|
#define E_IPC_CODEC_H
|
||
|
|
||
|
struct _E_Ipc_Int
|
||
|
{
|
||
|
int val;
|
||
|
};
|
||
|
|
||
|
struct _E_Ipc_Double
|
||
|
{
|
||
|
double val;
|
||
|
};
|
||
|
|
||
|
EAPI int e_ipc_codec_init(void);
|
||
|
EAPI void e_ipc_codec_shutdown(void);
|
||
|
|
||
|
EAPI int e_ipc_codec_int_dec(char *data, int bytes, int *dest);
|
||
|
EAPI void *e_ipc_codec_int_enc(int val, int *size_ret);
|
||
|
EAPI int e_ipc_codec_double_dec(char *data, int bytes, double *dest);
|
||
|
EAPI void *e_ipc_codec_double_enc(double val, int *size_ret);
|
||
|
|
||
|
#endif
|
||
|
#endif
|