From c6725884bc155da431889468c86c546f0f64f9a1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Jan 2014 20:16:43 +0100 Subject: db/update: convert to OO API Move global variables into the new classes. That may allow multiple update threads for multiple databases one day. --- src/db/update/InotifyUpdate.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/update/InotifyUpdate.cxx') diff --git a/src/db/update/InotifyUpdate.cxx b/src/db/update/InotifyUpdate.cxx index 72f22ceb1..3ba92ebf0 100644 --- a/src/db/update/InotifyUpdate.cxx +++ b/src/db/update/InotifyUpdate.cxx @@ -285,7 +285,7 @@ mpd_inotify_callback(int wd, unsigned mask, } void -mpd_inotify_init(EventLoop &loop, unsigned max_depth) +mpd_inotify_init(EventLoop &loop, UpdateService &update, unsigned max_depth) { LogDebug(inotify_domain, "initializing inotify"); @@ -320,7 +320,7 @@ mpd_inotify_init(EventLoop &loop, unsigned max_depth) recursive_watch_subdirectories(inotify_root, path, 0); - inotify_queue = new InotifyQueue(loop); + inotify_queue = new InotifyQueue(loop, update); LogDebug(inotify_domain, "watching music directory"); } -- cgit v1.2.3