Commit 9e36af79 authored by Max Kellermann's avatar Max Kellermann

DatabasePlugin: add attribute "flags"

parent 85b8675e
...@@ -35,6 +35,8 @@ class Database; ...@@ -35,6 +35,8 @@ class Database;
struct DatabasePlugin { struct DatabasePlugin {
const char *name; const char *name;
unsigned flags;
/** /**
* Allocates and configures a database. * Allocates and configures a database.
*/ */
......
...@@ -780,5 +780,6 @@ ProxyDatabase::GetStats(const DatabaseSelection &selection, ...@@ -780,5 +780,6 @@ ProxyDatabase::GetStats(const DatabaseSelection &selection,
const DatabasePlugin proxy_db_plugin = { const DatabasePlugin proxy_db_plugin = {
"proxy", "proxy",
0,
ProxyDatabase::Create, ProxyDatabase::Create,
}; };
...@@ -337,5 +337,6 @@ SimpleDatabase::Save(Error &error) ...@@ -337,5 +337,6 @@ SimpleDatabase::Save(Error &error)
const DatabasePlugin simple_db_plugin = { const DatabasePlugin simple_db_plugin = {
"simple", "simple",
0,
SimpleDatabase::Create, SimpleDatabase::Create,
}; };
...@@ -776,5 +776,6 @@ UpnpDatabase::GetStats(const DatabaseSelection &, ...@@ -776,5 +776,6 @@ UpnpDatabase::GetStats(const DatabaseSelection &,
const DatabasePlugin upnp_db_plugin = { const DatabasePlugin upnp_db_plugin = {
"upnp", "upnp",
0,
UpnpDatabase::Create, UpnpDatabase::Create,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment