aboutsummaryrefslogtreecommitdiffstats
path: root/src/Instance.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-05 17:50:04 +0100
committerMax Kellermann <max@duempel.org>2014-02-05 17:58:13 +0100
commit4c995eb49873eac081486a94c6ed8db566248563 (patch)
tree814bca7ff2a044b94d9e929aef028f34b471e3a0 /src/Instance.hxx
parent144cfe70bfb23ac5fdf328ed8b1492374d4b21f5 (diff)
downloadmpd-4c995eb49873eac081486a94c6ed8db566248563.tar.gz
mpd-4c995eb49873eac081486a94c6ed8db566248563.tar.xz
mpd-4c995eb49873eac081486a94c6ed8db566248563.zip
db/UpdateWalk: move LocalStorage to Instance
Keep only a reference.
Diffstat (limited to 'src/Instance.hxx')
-rw-r--r--src/Instance.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Instance.hxx b/src/Instance.hxx
index 52b137ab6..ca129ce80 100644
--- a/src/Instance.hxx
+++ b/src/Instance.hxx
@@ -31,6 +31,7 @@ class NeighborGlue;
#ifdef ENABLE_DATABASE
#include "db/DatabaseListener.hxx"
class Database;
+class LocalStorage;
class UpdateService;
#endif
@@ -62,6 +63,8 @@ struct Instance final
#ifdef ENABLE_DATABASE
Database *database;
+ LocalStorage *storage;
+
UpdateService *update;
#endif
@@ -71,6 +74,7 @@ struct Instance final
Instance() {
#ifdef ENABLE_DATABASE
+ storage = nullptr;
update = nullptr;
#endif
}