aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
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/Main.cxx
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/Main.cxx')
-rw-r--r--src/Main.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 06bef5326..3cedfe267 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -68,6 +68,7 @@
#include "db/update/Service.hxx"
#include "db/DatabaseGlue.hxx"
#include "db/DatabaseSimple.hxx"
+#include "db/plugins/SimpleDatabasePlugin.hxx"
#endif
#ifdef ENABLE_NEIGHBOR_PLUGINS
@@ -460,7 +461,7 @@ int mpd_main(int argc, char *argv[])
const bool create_db = !glue_db_init_and_load();
instance->update = db_is_simple()
- ? new UpdateService(*main_loop)
+ ? new UpdateService(*main_loop, db_get_simple())
: nullptr;
#endif