X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/483249fc1a9ab952054af5efa616ff9fb4151c9e..ac7fb818ccdcb697268fe9d0398bffb85d74fade:/include/wx/unix/gsockunx.h?ds=sidebyside diff --git a/include/wx/unix/gsockunx.h b/include/wx/unix/gsockunx.h index 9956242304..e44fef0eb3 100644 --- a/include/wx/unix/gsockunx.h +++ b/include/wx/unix/gsockunx.h @@ -26,6 +26,18 @@ extern "C" { #endif /* __cplusplus */ +#if !defined(__cplusplus) +typedef int bool; +#endif + +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + /* Definition of GSocket */ struct _GSocket @@ -73,28 +85,29 @@ int _GSocket_Send_Dgram(GSocket *socket, const char *buffer, int size); /* Callbacks */ -void _GSocket_Enable(GSocket *socket, GSocketEvent event); -void _GSocket_Disable(GSocket *socket, GSocketEvent event); -void _GSocket_Detected_Read(GSocket *socket); -void _GSocket_Detected_Write(GSocket *socket); - -void _GSocket_GUI_Init(GSocket *socket); +bool _GSocket_GUI_Init(GSocket *socket); void _GSocket_GUI_Destroy(GSocket *socket); + void _GSocket_Enable_Events(GSocket *socket); void _GSocket_Disable_Events(GSocket *socket); void _GSocket_Install_Callback(GSocket *socket, GSocketEvent event); void _GSocket_Uninstall_Callback(GSocket *socket, GSocketEvent event); +void _GSocket_Enable(GSocket *socket, GSocketEvent event); +void _GSocket_Disable(GSocket *socket, GSocketEvent event); +void _GSocket_Detected_Read(GSocket *socket); +void _GSocket_Detected_Write(GSocket *socket); + /* GAddress */ GSocketError _GAddress_translate_from(GAddress *address, struct sockaddr *addr, int len); -GSocketError _GAddress_translate_to(GAddress *address, - struct sockaddr **addr, int *len); - +GSocketError _GAddress_translate_to (GAddress *address, + struct sockaddr **addr, int *len); GSocketError _GAddress_Init_INET(GAddress *address); GSocketError _GAddress_Init_UNIX(GAddress *address); + #ifdef __cplusplus } #endif /* __cplusplus */