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
This commit is contained in:
Ryan Lortie 2013-01-18 18:48:31 -05:00 committed by Matthias Clasen
parent 6be54e9f56
commit 6af8894003
3 changed files with 10 additions and 0 deletions

View 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);

View 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);
}

View 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);
}