mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Move various elements into ID.h and zeek::id namespace
* A handful of generic/useful/common global type pointers that used to be in NetVar.h * Lookup functions that used to be Var.h
This commit is contained in:
parent
9210d443d3
commit
a5762c12cc
84 changed files with 578 additions and 568 deletions
|
@ -59,19 +59,19 @@ bool BroSubstring::DoesCover(const BroSubstring* bst) const
|
|||
VectorVal* BroSubstring::VecToPolicy(Vec* vec)
|
||||
{
|
||||
RecordType* sw_substring_type =
|
||||
zeek::lookup_type("sw_substring")->AsRecordType();
|
||||
zeek::id::lookup_type("sw_substring")->AsRecordType();
|
||||
if ( ! sw_substring_type )
|
||||
return nullptr;
|
||||
|
||||
RecordType* sw_align_type =
|
||||
zeek::lookup_type("sw_align")->AsRecordType();
|
||||
zeek::id::lookup_type("sw_align")->AsRecordType();
|
||||
if ( ! sw_align_type )
|
||||
return nullptr;
|
||||
|
||||
auto sw_align_vec_type = zeek::lookup_type<VectorType>("sw_align_vec");
|
||||
auto sw_align_vec_type = zeek::id::lookup_type<VectorType>("sw_align_vec");
|
||||
|
||||
auto result =
|
||||
make_intrusive<VectorVal>(zeek::lookup_type<VectorType>("sw_substring_vec"));
|
||||
make_intrusive<VectorVal>(zeek::id::lookup_type<VectorType>("sw_substring_vec"));
|
||||
|
||||
if ( vec )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue