mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 22:18:20 +00:00
Use shared_ptr instead of raw pointers in packet_analysis for analyzers and dispatchers
This commit is contained in:
parent
07b7a3be40
commit
f39d6bb4c4
26 changed files with 89 additions and 98 deletions
|
@ -12,11 +12,12 @@
|
|||
namespace zeek::packet_analysis {
|
||||
|
||||
class Analyzer;
|
||||
using AnalyzerPtr = std::shared_ptr<Analyzer>;
|
||||
|
||||
class Component : public plugin::Component,
|
||||
public plugin::TaggedComponent<packet_analysis::Tag> {
|
||||
public:
|
||||
typedef Analyzer* (*factory_callback)();
|
||||
typedef AnalyzerPtr (*factory_callback)();
|
||||
|
||||
Component(const std::string& name, factory_callback factory, Tag::subtype_t subtype = 0, bool enabled = true);
|
||||
~Component() override = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue