From: Ryan Lortie Date: Fri, 18 Jan 2013 23:48:31 +0000 (-0500) Subject: fam: implement gio-nfs-{file,directory}-monitor X-Git-Tag: 2.35.6~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6af88940032ab12179af5a9531915344e3e3db98;p=platform%2Fupstream%2Fglib.git 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 --- 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); }