[glib/gdbus-daemon2: 7/8] Add _g_io_win32_get_module to get the gio HMODULE



commit d75baad80ffc4b542489dbaa0ca09503564beaee
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Apr 18 16:25:29 2012 +0200

    Add _g_io_win32_get_module to get the gio HMODULE

 gio/giomodule-priv.h |    4 ++++
 gio/giomodule.c      |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gio/giomodule-priv.h b/gio/giomodule-priv.h
index b25d305..c105007 100644
--- a/gio/giomodule-priv.h
+++ b/gio/giomodule-priv.h
@@ -35,6 +35,10 @@ gpointer _g_io_module_get_default (const gchar         *extension_point,
 				   const gchar         *envvar,
 				   GIOModuleVerifyFunc  verify_func);
 
+#ifdef G_PLATFORM_WIN32
+void *_g_io_win32_get_module (void);
+#endif
+
 G_END_DECLS
 
 #endif /* __G_IO_MODULE_PRIV_H__ */
diff --git a/gio/giomodule.c b/gio/giomodule.c
index 480f2f0..d8ce138 100644
--- a/gio/giomodule.c
+++ b/gio/giomodule.c
@@ -795,6 +795,12 @@ DllMain (HINSTANCE hinstDLL,
   return TRUE;
 }
 
+void *
+_g_io_win32_get_module (void)
+{
+  return gio_dll;
+}
+
 #endif
 
 #undef GIO_MODULE_DIR



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]