aboutsummaryrefslogtreecommitdiffstats
path: root/src/inotify_update.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-04-13 21:01:19 +0200
committerMax Kellermann <max@duempel.org>2010-04-13 21:31:57 +0200
commit393bcd961ab750b2fdeba03e18f16b39ac82d38a (patch)
tree632e34a1bd208fc05869b7450e818ddf7e95fc93 /src/inotify_update.h
parent4d1eedbaa2be7e9e59f2332d9bf8886b9b634070 (diff)
downloadmpd-393bcd961ab750b2fdeba03e18f16b39ac82d38a.tar.gz
mpd-393bcd961ab750b2fdeba03e18f16b39ac82d38a.tar.xz
mpd-393bcd961ab750b2fdeba03e18f16b39ac82d38a.zip
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.
Diffstat (limited to '')
-rw-r--r--src/inotify_update.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inotify_update.h b/src/inotify_update.h
index ee6fbcfd8..92b4e0cc6 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)
{
}