diff options
author | Max Kellermann <max@duempel.org> | 2014-01-29 20:16:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-30 18:47:05 +0100 |
commit | c6725884bc155da431889468c86c546f0f64f9a1 (patch) | |
tree | 61d89751ecc98db9600620ac1788f32dea9214e1 /src/db/update/InotifyUpdate.hxx | |
parent | a31738f6f1473f4f621bc16513ed0c6024749389 (diff) | |
download | mpd-c6725884bc155da431889468c86c546f0f64f9a1.tar.gz mpd-c6725884bc155da431889468c86c546f0f64f9a1.tar.xz mpd-c6725884bc155da431889468c86c546f0f64f9a1.zip |
db/update: convert to OO API
Move global variables into the new classes. That may allow multiple
update threads for multiple databases one day.
Diffstat (limited to 'src/db/update/InotifyUpdate.hxx')
-rw-r--r-- | src/db/update/InotifyUpdate.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
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) { } |