summaryrefslogtreecommitdiff
path: root/gio/giomodule.c
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@gnome.org>2012-11-14 12:57:42 +0100
committerAntoine Jacoutot <ajacoutot@gnome.org>2012-11-15 08:13:30 +0100
commita335fd1de8fc2ab4b26c5fe6055014ea15043fb9 (patch)
treeeb247ebe4cce15db39b4eb22f61d38d422d8e2fb /gio/giomodule.c
parent2054ccad95cfdcf5eccd2ef6847c12039c9678e8 (diff)
downloadglib-a335fd1de8fc2ab4b26c5fe6055014ea15043fb9.tar.gz
glib-a335fd1de8fc2ab4b26c5fe6055014ea15043fb9.tar.bz2
glib-a335fd1de8fc2ab4b26c5fe6055014ea15043fb9.zip
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
Diffstat (limited to 'gio/giomodule.c')
-rw-r--r--gio/giomodule.c6
1 files changed, 6 insertions, 0 deletions
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 ());