db/Interface: add attribute "plugin"

The new method IsPlugin() replaces the "is_simple" flag.
This commit is contained in:
Max Kellermann
2014-02-19 23:17:21 +01:00
parent ae594ad92c
commit 85b8675e7a
12 changed files with 34 additions and 16 deletions

View File

@@ -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) {