Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_ipc Modified Files: Ecore_Ipc.h Log Message: hidden symbol support =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_ipc/Ecore_Ipc.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- Ecore_Ipc.h 22 Oct 2004 03:41:48 -0000 1.4 +++ Ecore_Ipc.h 25 Nov 2004 05:17:17 -0000 1.5 @@ -1,6 +1,23 @@ #ifndef _ECORE_IPC_H #define _ECORE_IPC_H +#ifdef EAPI +#undef EAPI +#endif +#ifdef WIN32 +# ifdef BUILDING_DLL +# define EAPI __declspec(dllexport) +# else +# define EAPI __declspec(dllimport) +# endif +#else +# ifdef GCC_HASCLASSVISIBILITY +# define EAPI __attribute__ ((visibility("default"))) +# else +# define EAPI +# endif +#endif + /** * @file Ecore_Ipc.h * @brief Ecore inter-process communication functions. @@ -83,29 +100,31 @@ extern int ECORE_IPC_EVENT_CLIENT_DATA; extern int ECORE_IPC_EVENT_SERVER_DATA; - int ecore_ipc_init(void); - int ecore_ipc_shutdown(void); + EAPI int ecore_ipc_init(void); + EAPI int ecore_ipc_shutdown(void); /* FIXME: need to add protocol type parameter */ - Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, char *name, int port, const void *data); + EAPI Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, char *name, int port, const void *data); /* FIXME: need to add protocol type parameter */ - Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data); - void *ecore_ipc_server_del(Ecore_Ipc_Server *svr); - void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr); - int ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr); + EAPI Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data); + EAPI void *ecore_ipc_server_del(Ecore_Ipc_Server *svr); + EAPI void *ecore_ipc_server_data_get(Ecore_Ipc_Server *svr); + EAPI int ecore_ipc_server_connected_get(Ecore_Ipc_Server *svr); /* FIXME: this needs to become an ipc message */ - int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, void *data, int size); + EAPI int ecore_ipc_server_send(Ecore_Ipc_Server *svr, int major, int minor, int ref, int ref_to, int response, void *data, int size); /* FIXME: this needs to become an ipc message */ - int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, void *data, int size); - Ecore_Ipc_Server *ecore_ipc_client_server_get(Ecore_Ipc_Client *cl); - void *ecore_ipc_client_del(Ecore_Ipc_Client *cl); - void ecore_ipc_client_data_set(Ecore_Ipc_Client *cl, const void *data); - void *ecore_ipc_client_data_get(Ecore_Ipc_Client *cl); + EAPI int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, void *data, int size); + EAPI Ecore_Ipc_Server *ecore_ipc_client_server_get(Ecore_Ipc_Client *cl); + EAPI void *ecore_ipc_client_del(Ecore_Ipc_Client *cl); + EAPI void ecore_ipc_client_data_set(Ecore_Ipc_Client *cl, const void *data); + EAPI void *ecore_ipc_client_data_get(Ecore_Ipc_Client *cl); + + EAPI int ecore_ipc_ssl_available_get(void); + /* FIXME: need to add a callback to "ok" large ipc messages greater than */ + /* a certain size (seurity/DOS attack safety) */ - int ecore_ipc_ssl_available_get(void); - #ifdef __cplusplus } #endif ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs