automatically update the database with Linux inotify

This patch implements a light-weight inotify library, and watches all
directories below the music directory.  It updates all directories
where files changed after a delay of 5 seconds.
This commit is contained in:
Max Kellermann
2009-09-25 18:32:00 +02:00
parent 3e8bdb9384
commit 8f261af5c1
10 changed files with 806 additions and 0 deletions

View File

@@ -118,6 +118,9 @@ AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",)
AC_CHECK_HEADERS(locale.h)
AC_CHECK_HEADERS(valgrind/memcheck.h)
AC_CHECK_FUNCS(inotify_init)
AM_CONDITIONAL(HAVE_INOTIFY, test x$ac_cv_func_inotify_init = xyes)
dnl
dnl mandatory libraries