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/db/SimpleDatabasePlugin.cxx | |
parent | bf6ed643e01687ed21b3a21cb3f77a1042e22c15 (diff) | |
download | mpd-65842cd99e82e30801bf287cd027c14e4ce3bd15.tar.gz mpd-65842cd99e82e30801bf287cd027c14e4ce3bd15.tar.xz mpd-65842cd99e82e30801bf287cd027c14e4ce3bd15.zip |
DatabasePlugin: pass config_param reference
Diffstat (limited to 'src/db/SimpleDatabasePlugin.cxx')
-rw-r--r-- | src/db/SimpleDatabasePlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/SimpleDatabasePlugin.cxx b/src/db/SimpleDatabasePlugin.cxx index f8a176fe1..ac5a75438 100644 --- a/src/db/SimpleDatabasePlugin.cxx +++ b/src/db/SimpleDatabasePlugin.cxx @@ -41,7 +41,7 @@ simple_db_quark(void) } Database * -SimpleDatabase::Create(const struct config_param *param, GError **error_r) +SimpleDatabase::Create(const config_param ¶m, GError **error_r) { SimpleDatabase *db = new SimpleDatabase(); if (!db->Configure(param, error_r)) { @@ -53,11 +53,11 @@ SimpleDatabase::Create(const struct config_param *param, GError **error_r) } bool -SimpleDatabase::Configure(const struct config_param *param, GError **error_r) +SimpleDatabase::Configure(const config_param ¶m, GError **error_r) { GError *error = NULL; - char *_path = config_dup_block_path(param, "path", &error); + char *_path = param.DupBlockPath("path", &error); if (_path == NULL) { if (error != NULL) g_propagate_error(error_r, error); |