mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Most of these changes are either cmake-related or plugin-related. Added a new test "plugins/legacy.zeek" to test that legacy Bro plugins still work. Also added a symlink bro-path-dev.in because some legacy Bro packages won't install without it.
21 lines
470 B
C++
21 lines
470 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 ::analyzer::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;
|
|
config.version.patch = 0;
|
|
return config;
|
|
}
|