aboutsummaryrefslogtreecommitdiffstats
path: root/src/CommandLine.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-13 22:29:07 +0100
committerMax Kellermann <max@duempel.org>2014-01-13 22:31:55 +0100
commit7c60b50a392189c7899d29ba47da5bac237bc462 (patch)
treeaf851fd8c9b02c79f3d5a81d88544b09a0a713cf /src/CommandLine.cxx
parent4f83c60296de90933dc898193bd212c8d3b3a869 (diff)
downloadmpd-7c60b50a392189c7899d29ba47da5bac237bc462.tar.gz
mpd-7c60b50a392189c7899d29ba47da5bac237bc462.tar.xz
mpd-7c60b50a392189c7899d29ba47da5bac237bc462.zip
CommandLine: print list of database plugins
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 ed9b05cb8..59cb53534 100644
--- a/src/CommandLine.cxx
+++ b/src/CommandLine.cxx
@@ -23,6 +23,8 @@
#include "LogInit.hxx"
#include "Log.hxx"
#include "ConfigGlobal.hxx"
+#include "DatabaseRegistry.hxx"
+#include "DatabasePlugin.hxx"
#include "DecoderList.hxx"
#include "DecoderPlugin.hxx"
#include "OutputList.hxx"
@@ -93,6 +95,12 @@ static void version(void)
"This is free software; see the source for copying conditions. There is NO\n"
"warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
"\n"
+ "Database plugins:");
+
+ for (auto i = database_plugins; *i != nullptr; ++i)
+ printf(" %s", (*i)->name);
+
+ puts("\n\n"
"Decoders plugins:");
decoder_plugins_for_each([](const DecoderPlugin &plugin){