mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Deprecate file analyzer construction methods taking raw RecordVal*
Replaced with versions that instead take IntrusivePtr
This commit is contained in:
parent
ecb7c7c27e
commit
57a6069cd1
26 changed files with 164 additions and 79 deletions
|
@ -9,8 +9,9 @@
|
|||
|
||||
using namespace file_analysis;
|
||||
|
||||
Entropy::Entropy(RecordVal* args, File* file)
|
||||
: file_analysis::Analyzer(file_mgr->GetComponentTag("ENTROPY"), args, file)
|
||||
Entropy::Entropy(IntrusivePtr<RecordVal> args, File* file)
|
||||
: file_analysis::Analyzer(file_mgr->GetComponentTag("ENTROPY"),
|
||||
std::move(args), file)
|
||||
{
|
||||
//entropy->Init();
|
||||
entropy = new EntropyVal;
|
||||
|
@ -22,9 +23,10 @@ Entropy::~Entropy()
|
|||
Unref(entropy);
|
||||
}
|
||||
|
||||
file_analysis::Analyzer* Entropy::Instantiate(RecordVal* args, File* file)
|
||||
file_analysis::Analyzer* Entropy::Instantiate(IntrusivePtr<RecordVal> args,
|
||||
File* file)
|
||||
{
|
||||
return new Entropy(args, file);
|
||||
return new Entropy(std::move(args), file);
|
||||
}
|
||||
|
||||
bool Entropy::DeliverStream(const u_char* data, uint64_t len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue