summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-04-18 16:25:29 +0200
committerAlexander Larsson <alexl@redhat.com>2012-04-19 18:20:28 +0200
commitd75baad80ffc4b542489dbaa0ca09503564beaee (patch)
tree11373ca6e0d2f9549f866b6cbaa0b6440855393a
parente92409c1b97208d4b8954d4745b072d36799f762 (diff)
downloadglib-d75baad80ffc4b542489dbaa0ca09503564beaee.tar.gz
Add _g_io_win32_get_module to get the gio HMODULE
-rw-r--r--gio/giomodule-priv.h4
-rw-r--r--gio/giomodule.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/gio/giomodule-priv.h b/gio/giomodule-priv.h
index b25d30574..c10500746 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 480f2f0e8..d8ce13815 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