mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Updating tests and tweaking HookArgument to include Frame support.
* Add frame support to HookArgument, since it's a new argument to HookCallFunction * Fix test in api-version-mismatch to remove absolute paths from output * Update test plugin to use new HookCallFunction interface
This commit is contained in:
parent
0104d7147d
commit
70c7258dfa
7 changed files with 879 additions and 899 deletions
|
@ -83,6 +83,13 @@ void HookArgument::Describe(ODesc* d) const
|
|||
d->Add("<null>");
|
||||
break;
|
||||
|
||||
case FRAME:
|
||||
if ( arg.frame )
|
||||
arg.frame->Describe(d);
|
||||
else
|
||||
d->Add("<null>");
|
||||
break;
|
||||
|
||||
case FUNC:
|
||||
if ( arg.func )
|
||||
d->Add(arg.func->Name());
|
||||
|
@ -106,21 +113,6 @@ void HookArgument::Describe(ODesc* d) const
|
|||
d->Add("<null>");
|
||||
break;
|
||||
|
||||
case WRAPPED_VAL:
|
||||
if ( arg.wrapper )
|
||||
{
|
||||
d->Add("wrapped(");
|
||||
if(arg.wrapper->value)
|
||||
{
|
||||
arg.wrapper->value->Describe(d);
|
||||
}
|
||||
else
|
||||
d->Add("<null>");
|
||||
d->Add(")");
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case VAL_LIST:
|
||||
if ( arg.vals )
|
||||
{
|
||||
|
@ -139,6 +131,26 @@ void HookArgument::Describe(ODesc* d) const
|
|||
case VOIDP:
|
||||
d->Add("<void ptr>");
|
||||
break;
|
||||
|
||||
case WRAPPED_VAL:
|
||||
if ( arg.wrapper )
|
||||
{
|
||||
d->Add("wrapped(");
|
||||
if(arg.wrapper->value)
|
||||
{
|
||||
arg.wrapper->value->Describe(d);
|
||||
}
|
||||
else
|
||||
d->Add("<null>");
|
||||
d->Add(")");
|
||||
}
|
||||
else
|
||||
{
|
||||
d->Add("<null>");
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue