mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Test case for a dynamic input reader.
This commit is contained in:
parent
f45526f373
commit
3d1442e86b
11 changed files with 423 additions and 72 deletions
19
testing/btest/plugins/reader-plugin/src/Plugin.cc
Normal file
19
testing/btest/plugins/reader-plugin/src/Plugin.cc
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "Plugin.h"
|
||||
|
||||
#include "Foo.h"
|
||||
|
||||
namespace plugin { namespace Demo_Foo { Plugin plugin; } }
|
||||
|
||||
using namespace plugin::Demo_Foo;
|
||||
|
||||
plugin::Configuration Plugin::Configure()
|
||||
{
|
||||
AddComponent(new ::input::Component("Foo", ::input::reader::Foo::Instantiate));
|
||||
|
||||
plugin::Configuration config;
|
||||
config.name = "Demo::Foo";
|
||||
config.description = "A Foo test input reader";
|
||||
config.version.major = 1;
|
||||
config.version.minor = 0;
|
||||
return config;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue