aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/InotifyUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-07 22:16:37 +0100
committerMax Kellermann <max@duempel.org>2014-02-07 22:30:40 +0100
commitf94727462668ea34df6ded9520279d378de6f080 (patch)
tree8fbc32ba5fe69ee7bef76162eabbb06160538153 /src/db/update/InotifyUpdate.cxx
parentf6939f71a7cbbcc54b9385fea8c78ad79fa51103 (diff)
downloadmpd-f94727462668ea34df6ded9520279d378de6f080.tar.gz
mpd-f94727462668ea34df6ded9520279d378de6f080.tar.xz
mpd-f94727462668ea34df6ded9520279d378de6f080.zip
InotifyUpdate: use class Storage instead of Mapper.cxx
Diffstat (limited to 'src/db/update/InotifyUpdate.cxx')
-rw-r--r--src/db/update/InotifyUpdate.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/db/update/InotifyUpdate.cxx b/src/db/update/InotifyUpdate.cxx
index 0ccd19896..26bdddf8d 100644
--- a/src/db/update/InotifyUpdate.cxx
+++ b/src/db/update/InotifyUpdate.cxx
@@ -22,7 +22,7 @@
#include "InotifySource.hxx"
#include "InotifyQueue.hxx"
#include "InotifyDomain.hxx"
-#include "Mapper.hxx"
+#include "storage/StorageInterface.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
#include "util/Error.hxx"
@@ -290,11 +290,12 @@ mpd_inotify_callback(int wd, unsigned mask,
}
void
-mpd_inotify_init(EventLoop &loop, UpdateService &update, unsigned max_depth)
+mpd_inotify_init(EventLoop &loop, Storage &storage, UpdateService &update,
+ unsigned max_depth)
{
LogDebug(inotify_domain, "initializing inotify");
- const auto &path = mapper_get_music_directory_fs();
+ const auto path = storage.MapFS("");
if (path.IsNull()) {
LogDebug(inotify_domain, "no music directory configured");
return;