From 9e36af791615eb8adcaee956808421271cb1ddff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 17 Feb 2014 20:53:17 +0100 Subject: DatabasePlugin: add attribute "flags" --- src/db/DatabasePlugin.hxx | 2 ++ src/db/plugins/ProxyDatabasePlugin.cxx | 1 + src/db/plugins/SimpleDatabasePlugin.cxx | 1 + src/db/plugins/UpnpDatabasePlugin.cxx | 1 + 4 files changed, 5 insertions(+) (limited to 'src/db') diff --git a/src/db/DatabasePlugin.hxx b/src/db/DatabasePlugin.hxx index ba6cd1f08..7655d8e2d 100644 --- a/src/db/DatabasePlugin.hxx +++ b/src/db/DatabasePlugin.hxx @@ -35,6 +35,8 @@ class Database; struct DatabasePlugin { const char *name; + unsigned flags; + /** * Allocates and configures a database. */ diff --git a/src/db/plugins/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx index 035ded8c3..824c1af46 100644 --- a/src/db/plugins/ProxyDatabasePlugin.cxx +++ b/src/db/plugins/ProxyDatabasePlugin.cxx @@ -780,5 +780,6 @@ ProxyDatabase::GetStats(const DatabaseSelection &selection, const DatabasePlugin proxy_db_plugin = { "proxy", + 0, ProxyDatabase::Create, }; diff --git a/src/db/plugins/SimpleDatabasePlugin.cxx b/src/db/plugins/SimpleDatabasePlugin.cxx index 9d8966158..8632fa5af 100644 --- a/src/db/plugins/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/SimpleDatabasePlugin.cxx @@ -337,5 +337,6 @@ SimpleDatabase::Save(Error &error) const DatabasePlugin simple_db_plugin = { "simple", + 0, SimpleDatabase::Create, }; diff --git a/src/db/plugins/UpnpDatabasePlugin.cxx b/src/db/plugins/UpnpDatabasePlugin.cxx index 9348d3297..0bdcd4206 100644 --- a/src/db/plugins/UpnpDatabasePlugin.cxx +++ b/src/db/plugins/UpnpDatabasePlugin.cxx @@ -776,5 +776,6 @@ UpnpDatabase::GetStats(const DatabaseSelection &, const DatabasePlugin upnp_db_plugin = { "upnp", + 0, UpnpDatabase::Create, }; -- cgit v1.2.3