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.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/db/update/InotifyUpdate.hxx') diff --git a/src/db/update/InotifyUpdate.hxx b/src/db/update/InotifyUpdate.hxx index 7cf486e5a..0260a4ff5 100644 --- a/src/db/update/InotifyUpdate.hxx +++ b/src/db/update/InotifyUpdate.hxx @@ -24,11 +24,12 @@ #include "Compiler.h" class EventLoop; +class UpdateService; #ifdef HAVE_INOTIFY_INIT void -mpd_inotify_init(EventLoop &loop, unsigned max_depth); +mpd_inotify_init(EventLoop &loop, UpdateService &update, unsigned max_depth); void mpd_inotify_finish(void); @@ -36,7 +37,9 @@ mpd_inotify_finish(void); #else /* !HAVE_INOTIFY_INIT */ static inline void -mpd_inotify_init(gcc_unused EventLoop &loop, gcc_unused unsigned max_depth) +mpd_inotify_init(gcc_unused EventLoop &loop, + gcc_unused UpdateService &update, + gcc_unused unsigned max_depth) { } -- cgit v1.2.3