summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-01-12 16:35:16 +0100
committerAlexander Larsson <alexl@redhat.com>2010-01-12 16:35:16 +0100
commit64cc7ebda2a7d5ecaf88a135182a27874bf83e5d (patch)
treee96eb695ad7e32ce5ed91e05a75ccdc2cf3c2c6f /client
parent438628c6794fc8f9203fbd99b534371a1aa6d11a (diff)
downloadgvfs-64cc7ebda2a7d5ecaf88a135182a27874bf83e5d.tar.gz
Enable support for lazy loading of gio modules
Diffstat (limited to 'client')
-rw-r--r--client/Makefile.am2
-rw-r--r--client/gdaemonvfs.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/client/Makefile.am b/client/Makefile.am
index e6e7d85a..b9eebf49 100644
--- a/client/Makefile.am
+++ b/client/Makefile.am
@@ -10,7 +10,7 @@ INCLUDES = -I$(top_srcdir) \
-DGVFS_LOCALEDIR=\""$(localedir)"\" \
-DDBUS_API_SUBJECT_TO_CHANGE
-module_flags = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_vfs_.*|g_io_module_load|g_io_module_unload'
+module_flags = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_vfs_.*|g_io_module_load|g_io_module_unload|g_io_module_query'
## Common to dynamic and static client libs
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c
index f0be1722..70358378 100644
--- a/client/gdaemonvfs.c
+++ b/client/gdaemonvfs.c
@@ -1587,3 +1587,14 @@ void
g_io_module_unload (GIOModule *module)
{
}
+
+char **
+g_io_module_query (void)
+{
+ char *eps[] = {
+ G_VFS_EXTENSION_POINT_NAME,
+ G_VOLUME_MONITOR_EXTENSION_POINT_NAME,
+ NULL
+ };
+ return g_strdupv (eps);
+}