diff options
author | Max Kellermann <max@duempel.org> | 2014-02-27 18:04:24 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-27 18:04:24 +0100 |
commit | 3f9ad8e104887bac46e778b0ee4c9ea298a488aa (patch) | |
tree | 74191db8a78c9f6a594f70eef995b5bd97e06829 /src/db/update/Service.hxx | |
parent | 1c772ef69947127e01e7171b007a2295d51e7ae7 (diff) | |
download | mpd-3f9ad8e104887bac46e778b0ee4c9ea298a488aa.tar.gz mpd-3f9ad8e104887bac46e778b0ee4c9ea298a488aa.tar.xz mpd-3f9ad8e104887bac46e778b0ee4c9ea298a488aa.zip |
db/update/Service: allocate UpdateWalk dynamically
Diffstat (limited to '')
-rw-r--r-- | src/db/update/Service.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/db/update/Service.hxx b/src/db/update/Service.hxx index ebdda7bd1..e42a0fa5a 100644 --- a/src/db/update/Service.hxx +++ b/src/db/update/Service.hxx @@ -22,12 +22,13 @@ #include "check.h" #include "Queue.hxx" -#include "Walk.hxx" #include "event/DeferredMonitor.hxx" #include "thread/Thread.hxx" class SimpleDatabase; class DatabaseListener; +class UpdateWalk; +class Storage; /** * This class manages the update queue and runs the update thread. @@ -40,6 +41,7 @@ class UpdateService final : DeferredMonitor { }; SimpleDatabase &db; + Storage &storage; DatabaseListener &listener; @@ -57,7 +59,7 @@ class UpdateService final : DeferredMonitor { UpdateQueueItem next; - UpdateWalk walk; + UpdateWalk *walk; public: UpdateService(EventLoop &_loop, SimpleDatabase &_db, |