mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
btest/plugins: Add a plugin testing Init and Done hooks
Follow-up for #4047.
This commit is contained in:
parent
97f05b2f8c
commit
39b43e8dd6
5 changed files with 71 additions and 0 deletions
18
testing/btest/plugins/init-hooks-plugin/src/Plugin.h
Normal file
18
testing/btest/plugins/init-hooks-plugin/src/Plugin.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
#include <zeek/plugin/Plugin.h>
|
||||
#include <cstdio>
|
||||
|
||||
namespace btest::plugin::Demo_InitHooks {
|
||||
|
||||
|
||||
class Plugin : public zeek::plugin::Plugin {
|
||||
protected:
|
||||
zeek::plugin::Configuration Configure() override;
|
||||
void InitPreScript() override;
|
||||
void InitPostScript() override;
|
||||
void InitPreExecution() override;
|
||||
void Done() override;
|
||||
};
|
||||
|
||||
extern Plugin plugin;
|
||||
} // namespace btest::plugin::Demo_InitHooks
|
Loading…
Add table
Add a link
Reference in a new issue