summaryrefslogtreecommitdiff
path: root/gio/giomodule.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-01-18 18:44:11 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-01-19 14:04:49 -0500
commit6be54e9f56e9344ecd55a8952dff957573a136b7 (patch)
tree075594cfd2c3bd2c9dcc96dd73ca46caf66fab72 /gio/giomodule.c
parentc83600e8ae419df7c30b16d267d71d706a29936f (diff)
downloadglib-6be54e9f56e9344ecd55a8952dff957573a136b7.tar.gz
glib-6be54e9f56e9344ecd55a8952dff957573a136b7.tar.bz2
glib-6be54e9f56e9344ecd55a8952dff957573a136b7.zip
localfile: add support for monitoring on NFS
Add a pair of new extension points: 'gio-nfs-file-monitor' and 'gio-nfs-directory-monitor'. Add a check to GLocalFile when creating a file monitor. If the requested file is in the user's home directory and the user has an NFS home directory then attempt to use an implementation of one of the new extension points. If we don't have any implementations then fall back to the normal "local" monitors. https://bugzilla.gnome.org/show_bug.cgi?id=592211
Diffstat (limited to 'gio/giomodule.c')
-rw-r--r--gio/giomodule.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gio/giomodule.c b/gio/giomodule.c
index 1a010ba4f..a394c600c 100644
--- a/gio/giomodule.c
+++ b/gio/giomodule.c
@@ -968,6 +968,12 @@ _g_io_modules_ensure_extension_points_registered (void)
ep = g_io_extension_point_register (G_LOCAL_FILE_MONITOR_EXTENSION_POINT_NAME);
g_io_extension_point_set_required_type (ep, G_TYPE_LOCAL_FILE_MONITOR);
+ ep = g_io_extension_point_register (G_NFS_DIRECTORY_MONITOR_EXTENSION_POINT_NAME);
+ g_io_extension_point_set_required_type (ep, G_TYPE_LOCAL_DIRECTORY_MONITOR);
+
+ ep = g_io_extension_point_register (G_NFS_FILE_MONITOR_EXTENSION_POINT_NAME);
+ g_io_extension_point_set_required_type (ep, G_TYPE_LOCAL_FILE_MONITOR);
+
ep = g_io_extension_point_register (G_VOLUME_MONITOR_EXTENSION_POINT_NAME);
g_io_extension_point_set_required_type (ep, G_TYPE_VOLUME_MONITOR);