X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9bf10d6bd3df0d5ad9d9849f162b17a62c3ac51f..7ba4fbebbc40bdf9c140f4c9ba9977fbf810527d:/include/wx/unix/gsockunx.h diff --git a/include/wx/unix/gsockunx.h b/include/wx/unix/gsockunx.h index 1c18fc1726..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,18 +85,19 @@ 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,