diff options
author | Max Kellermann <max@duempel.org> | 2013-08-04 13:51:27 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-04 14:07:50 +0200 |
commit | 65842cd99e82e30801bf287cd027c14e4ce3bd15 (patch) | |
tree | 13794e35372bde7e07e006bba87d1a66a9d4ea7f /src/DatabaseGlue.cxx | |
parent | bf6ed643e01687ed21b3a21cb3f77a1042e22c15 (diff) | |
download | mpd-65842cd99e82e30801bf287cd027c14e4ce3bd15.tar.gz mpd-65842cd99e82e30801bf287cd027c14e4ce3bd15.tar.xz mpd-65842cd99e82e30801bf287cd027c14e4ce3bd15.zip |
DatabasePlugin: pass config_param reference
Diffstat (limited to '')
-rw-r--r-- | src/DatabaseGlue.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DatabaseGlue.cxx b/src/DatabaseGlue.cxx index db7d4b9f3..e2076be28 100644 --- a/src/DatabaseGlue.cxx +++ b/src/DatabaseGlue.cxx @@ -50,13 +50,13 @@ static bool db_is_open; static bool is_simple; bool -DatabaseGlobalInit(const config_param *param, GError **error_r) +DatabaseGlobalInit(const config_param ¶m, GError **error_r) { assert(db == NULL); assert(!db_is_open); const char *plugin_name = - config_get_block_string(param, "plugin", "simple"); + param.GetBlockValue("plugin", "simple"); is_simple = strcmp(plugin_name, "simple") == 0; const DatabasePlugin *plugin = GetDatabasePluginByName(plugin_name); |