mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Make storage events take a tag for the backend instead of a string
This commit is contained in:
parent
989e4adf90
commit
32ae8f4eaa
15 changed files with 39 additions and 38 deletions
|
@ -11,7 +11,7 @@ using namespace zeek::storage;
|
|||
|
||||
namespace btest::storage::backend {
|
||||
|
||||
BackendPtr StorageDummy::Instantiate(std::string_view tag) { return make_intrusive<StorageDummy>(tag); }
|
||||
BackendPtr StorageDummy::Instantiate() { return make_intrusive<StorageDummy>(); }
|
||||
|
||||
/**
|
||||
* Called by the manager system to open the backend.
|
||||
|
|
|
@ -13,10 +13,10 @@ namespace btest::storage::backend {
|
|||
*/
|
||||
class StorageDummy : public zeek::storage::Backend {
|
||||
public:
|
||||
StorageDummy(std::string_view tag) : Backend(zeek::storage::SupportedModes::SYNC, tag) {}
|
||||
StorageDummy() : Backend(zeek::storage::SupportedModes::SYNC, "StorageDummy") {}
|
||||
~StorageDummy() override = default;
|
||||
|
||||
static zeek::storage::BackendPtr Instantiate(std::string_view tag);
|
||||
static zeek::storage::BackendPtr Instantiate();
|
||||
|
||||
/**
|
||||
* Called by the manager system to open the backend.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue