mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00

This adds two example plugins within testing/builtin-plugins/Files: * protocol-plugin copied over from testing/btest/plugins/protocol-plugin * py-lib-plugin that embeds Python to have a dependency on an external shared library which was already available in CI and fun to use, too. Closes #2837
20 lines
301 B
C++
20 lines
301 B
C++
|
|
#pragma once
|
|
|
|
#include <zeek/plugin/Plugin.h>
|
|
|
|
namespace btest::plugin::Demo_Foo
|
|
{
|
|
|
|
class Plugin : public zeek::plugin::Plugin
|
|
{
|
|
protected:
|
|
// Overridden from zeek::plugin::Plugin.
|
|
zeek::plugin::Configuration Configure() override;
|
|
|
|
void InitPostScript() override;
|
|
};
|
|
|
|
extern Plugin plugin;
|
|
|
|
}
|