From a335fd1de8fc2ab4b26c5fe6055014ea15043fb9 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Wed, 14 Nov 2012 12:57:42 +0100 Subject: GFileMonitor: Add kqueue(3) support to GIO Written by Dmitry Matveev as part of GSoC 2011: http://netbsd-soc.sourceforge.net/projects/kqueue4gio/ This brings native file monitoring support on systems supporting kqueue(3) (all BSDs) and remove the need to rely on the unmaintained gamin software. The backend adds GKqueueDirectoryMonitor and GKqueueFileMonitor. Some parts rewritten by myself (to prevent needing a configuration file). Helpful inputs from Colin Walters and Simon McVittie. https://bugzilla.gnome.org/show_bug.cgi?id=679793 --- gio/giomodule.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gio/giomodule.c') diff --git a/gio/giomodule.c b/gio/giomodule.c index 37a9e70a9..e8ca3e470 100644 --- a/gio/giomodule.c +++ b/gio/giomodule.c @@ -762,6 +762,8 @@ extern GType _g_fen_directory_monitor_get_type (void); extern GType _g_fen_file_monitor_get_type (void); extern GType _g_inotify_directory_monitor_get_type (void); extern GType _g_inotify_file_monitor_get_type (void); +extern GType _g_kqueue_directory_monitor_get_type (void); +extern GType _g_kqueue_file_monitor_get_type (void); extern GType _g_unix_volume_monitor_get_type (void); extern GType _g_local_vfs_get_type (void); @@ -915,6 +917,10 @@ _g_io_modules_ensure_loaded (void) g_type_ensure (_g_inotify_directory_monitor_get_type ()); g_type_ensure (_g_inotify_file_monitor_get_type ()); #endif +#if defined(HAVE_KQUEUE) + g_type_ensure (_g_kqueue_directory_monitor_get_type ()); + g_type_ensure (_g_kqueue_file_monitor_get_type ()); +#endif #if defined(HAVE_FEN) g_type_ensure (_g_fen_directory_monitor_get_type ()); g_type_ensure (_g_fen_file_monitor_get_type ()); -- cgit v1.2.3