mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
fixup! Event/zeek.bif: Add EventMetadata current() and current_values() accessors
This commit is contained in:
parent
5046533109
commit
9c4f8aa20a
1 changed files with 0 additions and 6 deletions
|
@ -449,12 +449,6 @@ function EventMetadata::current_all%(%): event_metadata_vec
|
||||||
return result;
|
return result;
|
||||||
%}
|
%}
|
||||||
|
|
||||||
function EventMetadata::current_values%(id: EventMetadata::ID%): any_vec
|
|
||||||
%{
|
|
||||||
static const auto& vt = zeek::id::find_type<zeek::VectorType>("any_vec");
|
|
||||||
return zeek::event_mgr.CurrentEvent()->MetadataValues({zeek::NewRef{}, id->AsEnumVal()});
|
|
||||||
%}
|
|
||||||
|
|
||||||
## Returns a system environment variable.
|
## Returns a system environment variable.
|
||||||
##
|
##
|
||||||
## var: The name of the variable whose value to request.
|
## var: The name of the variable whose value to request.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue