mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58: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
|
@ -18,12 +18,28 @@ void file_analysis::Analyzer::SetAnalyzerTag(const file_analysis::Tag& arg_tag)
|
|||
tag = arg_tag;
|
||||
}
|
||||
|
||||
file_analysis::Analyzer::Analyzer(file_analysis::Tag arg_tag, RecordVal* arg_args, File* arg_file)
|
||||
file_analysis::Analyzer::Analyzer(file_analysis::Tag arg_tag,
|
||||
IntrusivePtr<RecordVal> arg_args,
|
||||
File* arg_file)
|
||||
: tag(arg_tag),
|
||||
args({NewRef{}, arg_args}),
|
||||
args(std::move(arg_args)),
|
||||
file(arg_file),
|
||||
got_stream_delivery(false),
|
||||
skip(false)
|
||||
{
|
||||
id = ++id_counter;
|
||||
}
|
||||
|
||||
file_analysis::Analyzer::Analyzer(IntrusivePtr<RecordVal> arg_args, File* arg_file)
|
||||
: Analyzer({}, std::move(arg_args), arg_file)
|
||||
{}
|
||||
|
||||
file_analysis::Analyzer::Analyzer(file_analysis::Tag arg_tag,
|
||||
RecordVal* arg_args,
|
||||
File* arg_file)
|
||||
: Analyzer(arg_tag, {NewRef{}, arg_args}, arg_file)
|
||||
{}
|
||||
|
||||
file_analysis::Analyzer::Analyzer(RecordVal* arg_args, File* arg_file)
|
||||
: Analyzer({}, {NewRef{}, arg_args}, arg_file)
|
||||
{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue