Add _g_io_win32_get_module to get the gio HMODULE

(cherry picked from commit bd148e127a)
This commit is contained in:
Alexander Larsson
2012-04-18 16:25:29 +02:00
parent 9490d67f3c
commit cef54a9b82
2 changed files with 10 additions and 0 deletions

View File

@@ -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__ */

View File

@@ -795,6 +795,12 @@ DllMain (HINSTANCE hinstDLL,
return TRUE;
}
void *
_g_io_win32_get_module (void)
{
return gio_dll;
}
#endif
#undef GIO_MODULE_DIR