mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
btest/plugin: Add plugin testing enum identifiers
This plugin has a generic name, but for now just tests the API around enum types and enum vals at InitPostScript() time.
This commit is contained in:
parent
ab87ba9786
commit
cb610bdea2
5 changed files with 134 additions and 0 deletions
18
testing/btest/plugins/api-plugin/src/Plugin.h
Normal file
18
testing/btest/plugins/api-plugin/src/Plugin.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <zeek/plugin/Plugin.h>
|
||||
|
||||
namespace btest::plugin::Demo_API {
|
||||
|
||||
class Plugin : public zeek::plugin::Plugin {
|
||||
protected:
|
||||
// Overridden from zeek::plugin::Plugin.
|
||||
zeek::plugin::Configuration Configure() override;
|
||||
|
||||
void InitPostScript() override;
|
||||
};
|
||||
|
||||
extern Plugin plugin;
|
||||
|
||||
} // namespace btest::plugin::Demo_API
|
Loading…
Add table
Add a link
Reference in a new issue