Commit 7c60b50a authored by Max Kellermann's avatar Max Kellermann

CommandLine: print list of database plugins

parent 4f83c602
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include "LogInit.hxx" #include "LogInit.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "ConfigGlobal.hxx" #include "ConfigGlobal.hxx"
#include "DatabaseRegistry.hxx"
#include "DatabasePlugin.hxx"
#include "DecoderList.hxx" #include "DecoderList.hxx"
#include "DecoderPlugin.hxx" #include "DecoderPlugin.hxx"
#include "OutputList.hxx" #include "OutputList.hxx"
...@@ -93,6 +95,12 @@ static void version(void) ...@@ -93,6 +95,12 @@ static void version(void)
"This is free software; see the source for copying conditions. There is NO\n" "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" "warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
"\n" "\n"
"Database plugins:");
for (auto i = database_plugins; *i != nullptr; ++i)
printf(" %s", (*i)->name);
puts("\n\n"
"Decoders plugins:"); "Decoders plugins:");
decoder_plugins_for_each([](const DecoderPlugin &plugin){ decoder_plugins_for_each([](const DecoderPlugin &plugin){
......
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