fam: implement gio-nfs-{file,directory}-monitor
authorRyan Lortie <desrt@desrt.ca>
Fri, 18 Jan 2013 23:48:31 +0000 (18:48 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 19 Jan 2013 19:04:49 +0000 (14:04 -0500)
Declare explicit support for monitor NFS from the fam file monitoring
backend.  This will cause it to be preferred for monitoring on NFS, if
it is installed.

https://bugzilla.gnome.org/show_bug.cgi?id=592211

gio/fam/fam-module.c
gio/fam/gfamdirectorymonitor.c
gio/fam/gfamfilemonitor.c

index 79e4915..c25da33 100644 (file)
@@ -47,6 +47,8 @@ g_io_module_query (void)
   char *eps[] = {
     G_LOCAL_DIRECTORY_MONITOR_EXTENSION_POINT_NAME,
     G_LOCAL_FILE_MONITOR_EXTENSION_POINT_NAME,
+    G_NFS_DIRECTORY_MONITOR_EXTENSION_POINT_NAME,
+    G_NFS_FILE_MONITOR_EXTENSION_POINT_NAME,
     NULL
   };
   return g_strdupv (eps);
index 72a75d2..0bc69b5 100644 (file)
@@ -149,5 +149,9 @@ g_fam_directory_monitor_register (GIOModule *module)
                                  G_TYPE_FAM_DIRECTORY_MONITOR,
                                  "fam",
                                  10);
+  g_io_extension_point_implement (G_NFS_DIRECTORY_MONITOR_EXTENSION_POINT_NAME,
+                                 G_TYPE_FAM_DIRECTORY_MONITOR,
+                                 "fam",
+                                 10);
 }
 
index 47e207f..79983c7 100644 (file)
@@ -147,5 +147,9 @@ g_fam_file_monitor_register (GIOModule *module)
                                  G_TYPE_FAM_FILE_MONITOR,
                                  "fam",
                                  10);
+  g_io_extension_point_implement (G_NFS_FILE_MONITOR_EXTENSION_POINT_NAME,
+                                 G_TYPE_FAM_FILE_MONITOR,
+                                 "fam",
+                                 10);
 }