Moving existing built-in plugins over to new interface.

This commit is contained in:
Robin Sommer 2014-01-18 22:10:06 +01:00
parent ea01a1be30
commit 2c34101394
85 changed files with 944 additions and 293 deletions

View file

@ -1,10 +1,25 @@
// See the file in the main distribution directory for copyright.
#include "plugin/Plugin.h"
#include "ZIP.h"
BRO_PLUGIN_BEGIN(Bro, ZIP)
BRO_PLUGIN_DESCRIPTION("Generic ZIP support analyzer");
BRO_PLUGIN_ANALYZER_BARE("ZIP");
BRO_PLUGIN_BIF_FILE(events);
BRO_PLUGIN_END
namespace plugin {
namespace Bro_ZIP {
class Plugin : public plugin::Plugin {
public:
plugin::Configuration Configure()
{
AddComponent(new ::analyzer::Component("ZIP", 0));
plugin::Configuration config;
config.name = "Bro::ZIP";
config.description = "Generic ZIP support analyzer";
return config;
}
} plugin;
}
}