-void wxGUIAppTraitsBase::ScheduleForDestroy(wxObject *object)
-{
- if ( !wxPendingDelete.Member(object) )
- wxPendingDelete.Append(object);
-}
-
-void wxGUIAppTraitsBase::RemoveFromPendingDelete(wxObject *object)
-{
- wxPendingDelete.DeleteObject(object);
-}
-
-#if wxUSE_SOCKETS
-
-#if defined(__UNIX__) || defined(__DARWIN__) || defined(__OS2__)
- #include "wx/unix/gsockunx.h"
-#elif defined(__WINDOWS__)
- #include "wx/msw/gsockmsw.h"
-#elif defined(__WXMAC__)
- #include <MacHeaders.c>
- #define OTUNIXERRORS 1
- #include <OpenTransport.h>
- #include <OpenTransportProviders.h>
- #include <OpenTptInternet.h>
-
- #include "wx/mac/gsockmac.h"
-#else
- #error "Must include correct GSocket header here"
-#endif
-
-GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
-{
-#if defined(__WXMAC__) && !defined(__DARWIN__)
- // NB: wxMac CFM does not have any GUI-specific functions in gsocket.c and
- // so it doesn't need this table at all
- return NULL;
-#else // !__WXMAC__ || __DARWIN__
- static GSocketGUIFunctionsTable table =
- {
- _GSocket_GUI_Init,
- _GSocket_GUI_Cleanup,
- _GSocket_GUI_Init_Socket,
- _GSocket_GUI_Destroy_Socket,
-#ifndef __WINDOWS__
- _GSocket_Install_Callback,
- _GSocket_Uninstall_Callback,
-#endif
- _GSocket_Enable_Events,
- _GSocket_Disable_Events
- };
- return &table;
-#endif // !__WXMAC__ || __DARWIN__
-}
-
-GSocketBSD* wxGUIAppTraitsBase::CreateGSocket()
-{
-#ifdef wxUSE_GSOCKET_CPLUSPLUS
- return new GSocketBSDGUIShim();
-#else
- return NULL;
-#endif
-}
-
-#endif
-