event/TimeoutMonitor: wrapper for g_timeout_source_new()

This commit is contained in:
Max Kellermann
2013-01-10 19:08:42 +01:00
parent 92fb0e829a
commit d3a479b7fa
9 changed files with 153 additions and 60 deletions

View File

@@ -22,6 +22,7 @@
#include "InotifySource.hxx"
#include "InotifyQueue.hxx"
#include "Mapper.hxx"
#include "Main.hxx"
extern "C" {
#include "path.h"
@@ -342,7 +343,7 @@ mpd_inotify_init(unsigned max_depth)
recursive_watch_subdirectories(&inotify_root, path, 0);
inotify_queue = new InotifyQueue();
inotify_queue = new InotifyQueue(*main_loop);
g_debug("watching music directory");
}