aboutsummaryrefslogtreecommitdiffstats
path: root/src/CommandLine.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-05 19:23:02 +0100
committerMax Kellermann <max@duempel.org>2014-02-07 23:46:15 +0100
commita0088ccce1749dbef6503fbf489f7096d824c11d (patch)
treec2a8e4ed79ee62bfb70cfbfcd1aefa035219e609 /src/CommandLine.cxx
parentbe081929f4523376db2df52903230d3b20dc54e9 (diff)
downloadmpd-a0088ccce1749dbef6503fbf489f7096d824c11d.tar.gz
mpd-a0088ccce1749dbef6503fbf489f7096d824c11d.tar.xz
mpd-a0088ccce1749dbef6503fbf489f7096d824c11d.zip
storage: add struct StoragePlugin and a plugin registry
Diffstat (limited to 'src/CommandLine.cxx')
-rw-r--r--src/CommandLine.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx
index 69af68495..cc278c0fd 100644
--- a/src/CommandLine.cxx
+++ b/src/CommandLine.cxx
@@ -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