From 8f261af5c1cfd6f922df009e17756fa3bef71458 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Sep 2009 18:32:00 +0200 Subject: 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. --- Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 1fb3b8451..39c18a01f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -74,6 +74,9 @@ mpd_headers = \ src/fifo_buffer.h \ src/update.h \ src/update_internal.h \ + src/inotify_source.h \ + src/inotify_queue.h \ + src/inotify_update.h \ src/dirvec.h \ src/gcc.h \ src/decoder_list.h \ @@ -275,6 +278,13 @@ src_mpd_SOURCES = \ src/stored_playlist.c \ src/timer.c +if HAVE_INOTIFY +src_mpd_SOURCES += \ + src/inotify_source.c \ + src/inotify_queue.c \ + src/inotify_update.c +endif + if ENABLE_SQLITE src_mpd_SOURCES += \ src/sticker.c \ -- cgit v1.2.3