storage: add struct StoragePlugin and a plugin registry

This commit is contained in:
Max Kellermann
2014-02-05 19:23:02 +01:00
parent be081929f4
commit a0088ccce1
9 changed files with 177 additions and 6 deletions

View File

@@ -43,6 +43,8 @@
#ifdef ENABLE_DATABASE
#include "db/Registry.hxx"
#include "db/DatabasePlugin.hxx"
#include "storage/Registry.hxx"
#include "storage/StoragePlugin.hxx"
#endif
#ifdef ENABLE_NEIGHBOR_PLUGINS
@@ -113,6 +115,12 @@ static void version(void)
for (auto i = database_plugins; *i != nullptr; ++i)
printf(" %s", (*i)->name);
puts("\n\n"
"Storage plugins:");
for (auto i = storage_plugins; *i != nullptr; ++i)
printf(" %s", (*i)->name);
#endif
#ifdef ENABLE_NEIGHBOR_PLUGINS