aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/DatabaseGlue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-19 23:17:21 +0100
committerMax Kellermann <max@duempel.org>2014-02-19 23:17:21 +0100
commit85b8675e7a11a81bda4b4328e19e433768048911 (patch)
treefa69fa3360f8790331ddf874608d6411aecc14d4 /src/db/DatabaseGlue.cxx
parentae594ad92c1a6dc4aee3e83fa4ab94075b0170c1 (diff)
downloadmpd-85b8675e7a11a81bda4b4328e19e433768048911.tar.gz
mpd-85b8675e7a11a81bda4b4328e19e433768048911.tar.xz
mpd-85b8675e7a11a81bda4b4328e19e433768048911.zip
db/Interface: add attribute "plugin"
The new method IsPlugin() replaces the "is_simple" flag.
Diffstat (limited to '')
-rw-r--r--src/db/DatabaseGlue.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/DatabaseGlue.cxx b/src/db/DatabaseGlue.cxx
index 30c244334..ade5c95f3 100644
--- a/src/db/DatabaseGlue.cxx
+++ b/src/db/DatabaseGlue.cxx
@@ -29,11 +29,10 @@
Database *
DatabaseGlobalInit(EventLoop &loop, DatabaseListener &listener,
- const config_param &param, bool &is_simple, Error &error)
+ const config_param &param, Error &error)
{
const char *plugin_name =
param.GetBlockValue("plugin", "simple");
- is_simple = strcmp(plugin_name, "simple") == 0;
const DatabasePlugin *plugin = GetDatabasePluginByName(plugin_name);
if (plugin == nullptr) {