From 4fa5538e2bed36903b403e1aaee2462d22b456dc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2015 22:13:44 +0100 Subject: config/Param: split block-specific attributes to new struct ConfigBlock The old struct config_param remains only for top-level string options. --- test/DumpDatabase.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/DumpDatabase.cxx') diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index 4c5372694..4f00006c7 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -28,6 +28,7 @@ #include "db/PlaylistVector.hxx" #include "config/ConfigGlobal.hxx" #include "config/Param.hxx" +#include "config/Block.hxx" #include "tag/TagConfig.hxx" #include "fs/Path.hxx" #include "event/Loop.hxx" @@ -121,12 +122,12 @@ main(int argc, char **argv) /* do it */ const auto *path = config_get_param(ConfigOption::DB_FILE); - config_param param("database", path != nullptr ? path->line : -1); + ConfigBlock block(path != nullptr ? path->line : -1); if (path != nullptr) - param.AddBlockParam("path", path->value.c_str(), path->line); + block.AddBlockParam("path", path->value.c_str(), path->line); Database *db = plugin->create(event_loop, database_listener, - param, error); + block, error); if (db == nullptr) { cerr << error.GetMessage() << endl; -- cgit v1.2.3