aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/InotifyUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-29 18:36:32 +0100
committerMax Kellermann <max@duempel.org>2014-01-29 18:36:32 +0100
commit4b044bd8e1c180ced319a83551afe85bcba1db2f (patch)
treebd5a285a614a383051f1e8d2e3a46026bdf3bc92 /src/db/update/InotifyUpdate.cxx
parentaeaf64b46757e64bf32e945d52df2c4d447e5aa4 (diff)
downloadmpd-4b044bd8e1c180ced319a83551afe85bcba1db2f.tar.gz
mpd-4b044bd8e1c180ced319a83551afe85bcba1db2f.tar.xz
mpd-4b044bd8e1c180ced319a83551afe85bcba1db2f.zip
InotifyUpdate: pass EventLoop to mpd_inotify_init()
Diffstat (limited to '')
-rw-r--r--src/db/update/InotifyUpdate.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/db/update/InotifyUpdate.cxx b/src/db/update/InotifyUpdate.cxx
index 7515990d7..72f22ceb1 100644
--- a/src/db/update/InotifyUpdate.cxx
+++ b/src/db/update/InotifyUpdate.cxx
@@ -23,7 +23,6 @@
#include "InotifyQueue.hxx"
#include "InotifyDomain.hxx"
#include "Mapper.hxx"
-#include "Main.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
#include "util/Error.hxx"
@@ -286,7 +285,7 @@ mpd_inotify_callback(int wd, unsigned mask,
}
void
-mpd_inotify_init(unsigned max_depth)
+mpd_inotify_init(EventLoop &loop, unsigned max_depth)
{
LogDebug(inotify_domain, "initializing inotify");
@@ -297,7 +296,7 @@ mpd_inotify_init(unsigned max_depth)
}
Error error;
- inotify_source = InotifySource::Create(*main_loop,
+ inotify_source = InotifySource::Create(loop,
mpd_inotify_callback, nullptr,
error);
if (inotify_source == nullptr) {
@@ -321,7 +320,7 @@ mpd_inotify_init(unsigned max_depth)
recursive_watch_subdirectories(inotify_root, path, 0);
- inotify_queue = new InotifyQueue(*main_loop);
+ inotify_queue = new InotifyQueue(loop);
LogDebug(inotify_domain, "watching music directory");
}