From 393bcd961ab750b2fdeba03e18f16b39ac82d38a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Apr 2010 21:01:19 +0200 Subject: inotify: added setting "auto_update_depth" Limits the depth of the watched directories. This is useful to keep resource usage down and speed up MPD startup. --- src/inotify_update.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inotify_update.h') diff --git a/src/inotify_update.h b/src/inotify_update.h index ee6fbcfd..92b4e0cc 100644 --- a/src/inotify_update.h +++ b/src/inotify_update.h @@ -25,7 +25,7 @@ #ifdef HAVE_INOTIFY_INIT void -mpd_inotify_init(void); +mpd_inotify_init(unsigned max_depth); void mpd_inotify_finish(void); @@ -33,7 +33,7 @@ mpd_inotify_finish(void); #else /* !HAVE_INOTIFY_INIT */ static inline void -mpd_inotify_init(void) +mpd_inotify_init(G_GNUC_UNUSED unsigned max_depth) { } -- cgit v1.2.3