summaryrefslogtreecommitdiff
path: root/src/Main.cxx
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/Main.cxx
parent144cfe70bfb23ac5fdf328ed8b1492374d4b21f5 (diff)
db/UpdateWalk: move LocalStorage to Instance
Keep only a reference.
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 0849353a3..108c0abcb 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -69,6 +69,7 @@
#include "db/DatabaseGlue.hxx"
#include "db/DatabaseSimple.hxx"
#include "db/plugins/SimpleDatabasePlugin.hxx"
+#include "storage/LocalStorage.hxx"
#endif
#ifdef ENABLE_NEIGHBOR_PLUGINS
@@ -209,7 +210,10 @@ glue_db_init_and_load(void)
return true;
SimpleDatabase &db = *(SimpleDatabase *)instance->database;
+ instance->storage = new LocalStorage(mapper_get_music_directory_utf8(),
+ mapper_get_music_directory_fs());
instance->update = new UpdateService(*instance->event_loop, db,
+ *instance->storage,
*instance);
/* run database update after daemonization? */