mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
ZeekArgs: Helper for empty arguments
This commit is contained in:
parent
743658248e
commit
a25b1a9d59
2 changed files with 13 additions and 0 deletions
|
@ -52,4 +52,10 @@ VectorValPtr MakeCallArgumentVector(const Args& vals, const RecordTypePtr& types
|
||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VectorValPtr MakeEmptyCallArgumentVector()
|
||||||
|
{
|
||||||
|
static auto call_argument_vector = id::find_type<VectorType>("call_argument_vector");
|
||||||
|
return make_intrusive<VectorVal>(call_argument_vector);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace zeek
|
} // namespace zeek
|
||||||
|
|
|
@ -39,4 +39,11 @@ Args val_list_to_args(const ValPList& vl);
|
||||||
*/
|
*/
|
||||||
VectorValPtr MakeCallArgumentVector(const Args& vals, const RecordTypePtr& types);
|
VectorValPtr MakeCallArgumentVector(const Args& vals, const RecordTypePtr& types);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an empty "call_argument_vector" vector.
|
||||||
|
*
|
||||||
|
* @return empty vector of script-level type "call_argument_vector"
|
||||||
|
*/
|
||||||
|
VectorValPtr MakeEmptyCallArgumentVector();
|
||||||
|
|
||||||
} // namespace zeek
|
} // namespace zeek
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue