mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00

that init-plugin now generates. Also adding new test that makes sure the the skeleton created by init-plugin compiles on its own withoyt any further changes.
20 lines
450 B
C++
20 lines
450 B
C++
|
|
#include "Plugin.h"
|
|
|
|
#include "Foo.h"
|
|
|
|
namespace plugin { namespace Demo_Foo { Plugin plugin; } }
|
|
|
|
using namespace plugin::Demo_Foo;
|
|
|
|
plugin::Configuration Plugin::Configure()
|
|
{
|
|
AddComponent(new ::file_analysis::Component("Foo", ::plugin::Demo_Foo::Foo::Instantiate));
|
|
|
|
plugin::Configuration config;
|
|
config.name = "Demo::Foo";
|
|
config.description = "A Foo test analyzer";
|
|
config.version.major = 1;
|
|
config.version.minor = 0;
|
|
return config;
|
|
}
|