aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Service.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 08:37:05 +0100
committerMax Kellermann <max@duempel.org>2014-02-04 09:05:32 +0100
commitd76b6f878e06d052ab54415783c39997939349e0 (patch)
tree954eb15c6a1f8eaa033285df551f355f6973d758 /src/db/update/Service.hxx
parentf25ef8d6825c03aec4569c6ad4b9bfb3a9f5d78d (diff)
downloadmpd-d76b6f878e06d052ab54415783c39997939349e0.tar.gz
mpd-d76b6f878e06d052ab54415783c39997939349e0.tar.xz
mpd-d76b6f878e06d052ab54415783c39997939349e0.zip
db/update/Service: add SimpleDatabase reference
Don't use the global variables from the DatabaseSimple library.
Diffstat (limited to 'src/db/update/Service.hxx')
-rw-r--r--src/db/update/Service.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/db/update/Service.hxx b/src/db/update/Service.hxx
index 3ea4baea1..815be6dbc 100644
--- a/src/db/update/Service.hxx
+++ b/src/db/update/Service.hxx
@@ -26,6 +26,8 @@
#include "event/DeferredMonitor.hxx"
#include "thread/Thread.hxx"
+class SimpleDatabase;
+
/**
* This class manages the update queue and runs the update thread.
*/
@@ -36,6 +38,8 @@ class UpdateService final : DeferredMonitor {
UPDATE_PROGRESS_DONE = 2
};
+ SimpleDatabase &db;
+
Progress progress;
bool modified;
@@ -53,7 +57,7 @@ class UpdateService final : DeferredMonitor {
UpdateWalk walk;
public:
- UpdateService(EventLoop &_loop);
+ UpdateService(EventLoop &_loop, SimpleDatabase &_db);
/**
* Returns a non-zero job id when we are currently updating