Skip to content

Commit 3e0a057

Browse files
author
Pavel Siska
committed
WIP
1 parent 7ed39f6 commit 3e0a057

3 files changed

Lines changed: 3 additions & 30 deletions

File tree

include/ipfixprobe/outputPlugin.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class IPXP_API OutputPlugin : public Plugin {
4343
}
4444
virtual ~OutputPlugin() {}
4545

46+
using Plugin::init;
47+
4648
virtual void init(const char* params, ProcessPlugins& plugins) = 0;
4749

4850
enum class Result { EXPORTED = 0, DROPPED };

src/core/ipfixprobe.cpp

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
*
2727
*/
2828

29-
#include "ipfixprobe.hpp"
30-
3129
#include "buildConfig.hpp"
30+
#include "ipfixprobe.hpp"
3231
#include "stacktrace.hpp"
3332
#include "stats.hpp"
3433

@@ -134,30 +133,6 @@ static void printPluginsUsage(const std::string& pluginName)
134133
}
135134
}
136135

137-
static void printRegisteredPlugins(
138-
const std::string& pluginType,
139-
const std::vector<PluginManifest>& pluginsManifest)
140-
{
141-
std::cout << "Registered " << pluginType << " plugins:" << std::endl;
142-
for (const auto& pluginManifest : pluginsManifest) {
143-
std::cout << " " << pluginManifest.name << std::endl;
144-
}
145-
std::cout << "#####################\n";
146-
}
147-
148-
static void printPlugins()
149-
{
150-
auto& inputPluginFactory = InputPluginFactory::getInstance();
151-
auto& storagePluginFactory = StoragePluginFactory::getInstance();
152-
auto& processPluginFactory = ProcessPluginFactory::getInstance();
153-
auto& outputPluginFactory = OutputPluginFactory::getInstance();
154-
155-
printRegisteredPlugins("input", inputPluginFactory.getRegisteredPlugins());
156-
printRegisteredPlugins("storage", storagePluginFactory.getRegisteredPlugins());
157-
printRegisteredPlugins("process", processPluginFactory.getRegisteredPlugins());
158-
printRegisteredPlugins("output", outputPluginFactory.getRegisteredPlugins());
159-
}
160-
161136
void print_help(const std::string& arg)
162137
{
163138
if (arg == "input") {
@@ -679,8 +654,6 @@ int run(int argc, char* argv[])
679654

680655
conf.pluginManager.loadPlugins(parser.m_plugins_path, loadPluginsRecursive);
681656

682-
// printPlugins();
683-
684657
if (parser.m_help) {
685658
if (parser.m_help_str.empty()) {
686659
parser.usage(std::cout, 0, IPXP_APP_NAME);

src/plugins/input/raw/src/raw.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,4 @@ class RawReader : public InputPlugin {
150150
void print_available_ifcs();
151151
};
152152

153-
void packet_handler(u_char* arg, const struct pcap_pkthdr* h, const u_char* data);
154-
155153
} // namespace ipxp

0 commit comments

Comments
 (0)