summaryrefslogtreecommitdiff
path: root/gio/giomodule-priv.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2011-06-21 18:21:27 -0400
committerDan Winship <danw@gnome.org>2011-10-04 13:20:34 -0400
commit1481b7bca3c24149a2970758bc8762e1318f361e (patch)
treef2c9a026703eb65ea4ec724a385d4bff483a4f20 /gio/giomodule-priv.h
parent38d21f6d8a761cf211c0e0ca21c394b4824d13f2 (diff)
downloadglib-1481b7bca3c24149a2970758bc8762e1318f361e.tar.gz
Add _g_io_module_get_default(), use to simplify other *_get_default()s
Add _g_io_module_get_default(), which implements the figure-out-the-best-available-module-that-is-actually-usable logic, and use that to simplify g_proxy_resolver_get_default(), g_settings_backend_get_default(), g_tls_backend_get_default(), and g_vfs_get_default(). https://bugzilla.gnome.org/show_bug.cgi?id=620932
Diffstat (limited to 'gio/giomodule-priv.h')
-rw-r--r--gio/giomodule-priv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gio/giomodule-priv.h b/gio/giomodule-priv.h
index a4677b035..b25d30574 100644
--- a/gio/giomodule-priv.h
+++ b/gio/giomodule-priv.h
@@ -30,6 +30,11 @@ G_BEGIN_DECLS
void _g_io_modules_ensure_extension_points_registered (void);
void _g_io_modules_ensure_loaded (void);
+typedef gboolean (*GIOModuleVerifyFunc) (gpointer);
+gpointer _g_io_module_get_default (const gchar *extension_point,
+ const gchar *envvar,
+ GIOModuleVerifyFunc verify_func);
+
G_END_DECLS
#endif /* __G_IO_MODULE_PRIV_H__ */