Update zeek.bif

This commit is contained in:
bhaskarbhar 2025-06-25 22:53:29 +05:30 committed by GitHub
parent 722381366b
commit f9c34f29c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5653,7 +5653,7 @@ function find_in_zeekpath%(p: string%): string
##
## Returns: A vector of records containing the tags of all plugin components
## that belong to the specified category.
function get_plugin_components%(category: string%): PluginComponent_vec
function get_plugin_components%(category: string%): plugin_component_vec
%{
std::string cat = category->CheckString();
auto type = CategoryStringToEnum(cat);
@ -5664,12 +5664,12 @@ function get_plugin_components%(category: string%): PluginComponent_vec
return nullptr;
}
static auto vec_type = zeek::id::find_type<zeek::VectorType>("PluginComponent_vec");
static auto vec_type = zeek::id::find_type<zeek::VectorType>("plugin_component_vec");
static auto rec_type = zeek::id::find_type<zeek::RecordType>("PluginComponent");
if ( ! vec_type || ! rec_type )
{
reporter->Error("Required types not found (PluginComponent or PluginComponent_vec)");
reporter->Error("Required types not found (PluginComponent or plugin_component_vec)");
return nullptr;
}