fixup! Event/zeek.bif: Add EventMetadata current() and current_values() accessors

This commit is contained in:
Arne Welzel 2025-05-16 18:41:10 +02:00
parent 5046533109
commit 9c4f8aa20a

View file

@ -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.