From 4c995eb49873eac081486a94c6ed8db566248563 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Feb 2014 17:50:04 +0100 Subject: db/UpdateWalk: move LocalStorage to Instance Keep only a reference. --- src/Main.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Main.cxx') 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? */ -- cgit v1.2.3