mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Integrate review feedback
* Add deprecation for MIME_Entity::ContentType(), use GetContentType() * Add deprecation for MIME_Entity::ContentSubType(), use GetContentSubType() * Add deprecation for MIME_Message::BuildHeaderVal(), use ToHeaderVal() * Add deprecation for MIME_Message::BuildHeaderTable(), use ToHeaderTable() * Add deprecation for mime::new_string_val(), use mime::to_stringval() * Add deprecation for ARP_Analyzer::ConstructAddrVal(), use ToAddrVal() * Add deprecation for ARP_Analyzer::EthAddrToStr(), use ToEthAddrStr() * Change the Func::Call() replacement to be named Func::Invoke()
This commit is contained in:
parent
82ce64ca70
commit
9c133b9b10
22 changed files with 137 additions and 95 deletions
|
@ -717,7 +717,7 @@ bool Manager::Write(EnumVal* id, RecordVal* columns_arg)
|
|||
// See whether the predicates indicates that we want
|
||||
// to log this record.
|
||||
int result = 1;
|
||||
auto v = filter->pred->operator()(columns);
|
||||
auto v = filter->pred->Invoke(columns);
|
||||
|
||||
if ( v )
|
||||
result = v->AsBool();
|
||||
|
@ -744,9 +744,9 @@ bool Manager::Write(EnumVal* id, RecordVal* columns_arg)
|
|||
// Can be TYPE_ANY here.
|
||||
rec_arg = columns;
|
||||
|
||||
auto v = filter->path_func->operator()(IntrusivePtr{NewRef{}, id},
|
||||
std::move(path_arg),
|
||||
std::move(rec_arg));
|
||||
auto v = filter->path_func->Invoke(IntrusivePtr{NewRef{}, id},
|
||||
std::move(path_arg),
|
||||
std::move(rec_arg));
|
||||
|
||||
if ( ! v )
|
||||
return false;
|
||||
|
@ -1050,7 +1050,7 @@ threading::Value** Manager::RecordToFilterVals(Stream* stream, Filter* filter,
|
|||
|
||||
if ( filter->num_ext_fields > 0 )
|
||||
{
|
||||
auto res = filter->ext_func->operator()(IntrusivePtr{NewRef{}, filter->path_val});
|
||||
auto res = filter->ext_func->Invoke(IntrusivePtr{NewRef{}, filter->path_val});
|
||||
|
||||
if ( res )
|
||||
ext_rec = {AdoptRef{}, res.release()->AsRecordVal()};
|
||||
|
@ -1527,7 +1527,7 @@ bool Manager::FinishedRotation(WriterFrontend* writer, const char* new_name, con
|
|||
// Call the postprocessor function.
|
||||
int result = 0;
|
||||
|
||||
auto v = func->operator()(std::move(info));
|
||||
auto v = func->Invoke(std::move(info));
|
||||
if ( v )
|
||||
result = v->AsBool();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue