[glib] fam: implement gio-nfs-{file,directory}-monitor



commit 6af88940032ab12179af5a9531915344e3e3db98
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Jan 18 18:48:31 2013 -0500

    fam: implement gio-nfs-{file,directory}-monitor
    
    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           |    2 ++
 gio/fam/gfamdirectorymonitor.c |    4 ++++
 gio/fam/gfamfilemonitor.c      |    4 ++++
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gio/fam/fam-module.c b/gio/fam/fam-module.c
index 79e4915..c25da33 100644
--- a/gio/fam/fam-module.c
+++ b/gio/fam/fam-module.c
@@ -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);
diff --git a/gio/fam/gfamdirectorymonitor.c b/gio/fam/gfamdirectorymonitor.c
index 72a75d2..0bc69b5 100644
--- a/gio/fam/gfamdirectorymonitor.c
+++ b/gio/fam/gfamdirectorymonitor.c
@@ -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);
 }
 
diff --git a/gio/fam/gfamfilemonitor.c b/gio/fam/gfamfilemonitor.c
index 47e207f..79983c7 100644
--- a/gio/fam/gfamfilemonitor.c
+++ b/gio/fam/gfamfilemonitor.c
@@ -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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]