mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Lay out initial parts for the Storage framework
This includes a manager, component manager, BIF and script code, and parts to support new storage backend plugins.
This commit is contained in:
parent
3d6e7c85b0
commit
2ea0f3e70a
32 changed files with 874 additions and 1 deletions
23
testing/btest/plugins/storage-plugin/src/Plugin.cc
Normal file
23
testing/btest/plugins/storage-plugin/src/Plugin.cc
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Plugin.h"
|
||||
|
||||
#include "zeek/storage/Component.h"
|
||||
|
||||
#include "StorageDummy.h"
|
||||
|
||||
namespace btest::plugin::Testing_StorageDummy {
|
||||
Plugin plugin;
|
||||
}
|
||||
|
||||
using namespace btest::plugin::Testing_StorageDummy;
|
||||
|
||||
zeek::plugin::Configuration Plugin::Configure() {
|
||||
AddComponent(new zeek::storage::Component("StorageDummy", btest::storage::backend::StorageDummy::Instantiate));
|
||||
|
||||
zeek::plugin::Configuration config;
|
||||
config.name = "Testing::StorageDummy";
|
||||
config.description = "A dummy storage plugin";
|
||||
config.version.major = 1;
|
||||
config.version.minor = 0;
|
||||
config.version.patch = 0;
|
||||
return config;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue