mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
22 lines
505 B
C++
22 lines
505 B
C++
|
|
#include "Plugin.h"
|
|
#include "analyzer/Component.h"
|
|
|
|
#include "Foo.h"
|
|
|
|
namespace plugin { namespace Demo_Foo { Plugin plugin; } }
|
|
|
|
using namespace plugin::Demo_Foo;
|
|
|
|
plugin::Configuration Plugin::Configure()
|
|
{
|
|
AddComponent(new ::analyzer::Component("Foo", plugin::Demo_Foo::Foo::Instantiate, 1));
|
|
|
|
plugin::Configuration config;
|
|
config.name = "Demo::Foo";
|
|
config.description = "A Foo test analyzer";
|
|
config.version.major = 1;
|
|
config.version.minor = 0;
|
|
config.version.patch = 0;
|
|
return config;
|
|
}
|