]> git.saurik.com Git - wxWidgets.git/commitdiff
Move GSocketBSDGUIShim from source file to header (we'll need it in a second)
authorDavid Elliott <dfe@tgwbd.org>
Sun, 18 Jan 2004 20:17:29 +0000 (20:17 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 18 Jan 2004 20:17:29 +0000 (20:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/unix/gsockunx.h
src/unix/gsocket.cpp

index 19e210ae3c2dc6a80bd1371eddc8a87c8ede9b2e..8603d4290ba7ff70f89b9893132d4270d87f8fa6 100644 (file)
@@ -112,6 +112,30 @@ struct _GSocket
 #ifdef __cplusplus
 }
 #endif  /* __cplusplus */
+#else
+///////////////////////////////////////////////////////////////////////////
+// GSocketBSDGUIShim
+class GSocketBSDGUIShim:public GSocketBSD
+{
+    friend void GSocket_SetGUIFunctions(struct GSocketGUIFunctionsTable *guifunc);
+public:
+    static inline bool GUI_Init();
+    static inline void GUI_Cleanup();
+    static inline bool UseGUI();
+    GSocketBSDGUIShim();
+    virtual ~GSocketBSDGUIShim();
+protected:
+    virtual void EventLoop_Enable_Events();
+    virtual void EventLoop_Disable_Events();
+    virtual void EventLoop_Install_Callback(GSocketEvent event);
+    virtual void EventLoop_Uninstall_Callback(GSocketEvent event);
+private:
+/* Table of GUI-related functions. We must call them indirectly because
+ * of wxBase and GUI separation: */
+
+    static struct GSocketGUIFunctionsTable *ms_gui_functions;
+};
+
 #endif //ndef wxUSE_GSOCKET_CPLUSPLUS
 
 #ifdef __cplusplus
index b1192c0555a912a763be73534a93a5da4bd7ba94..edf43f5a06130440ca374e081a84b2c9b83a097a 100644 (file)
@@ -158,27 +158,6 @@ int _System soclose(int);
 
 ///////////////////////////////////////////////////////////////////////////
 // GSocketBSDGUIShim
-class GSocketBSDGUIShim:public GSocketBSD
-{
-    friend void GSocket_SetGUIFunctions(struct GSocketGUIFunctionsTable *guifunc);
-public:
-    static inline bool GUI_Init();
-    static inline void GUI_Cleanup();
-    static inline bool UseGUI();
-    GSocketBSDGUIShim();
-    virtual ~GSocketBSDGUIShim();
-protected:
-    virtual void EventLoop_Enable_Events();
-    virtual void EventLoop_Disable_Events();
-    virtual void EventLoop_Install_Callback(GSocketEvent event);
-    virtual void EventLoop_Uninstall_Callback(GSocketEvent event);
-private:
-/* Table of GUI-related functions. We must call them indirectly because
- * of wxBase and GUI separation: */
-
-    static struct GSocketGUIFunctionsTable *ms_gui_functions;
-};
-
 struct GSocketGUIFunctionsTable *GSocketBSDGUIShim::ms_gui_functions = NULL;
 
 void GSocket_SetGUIFunctions(struct GSocketGUIFunctionsTable *guifunc)