Mark global val_mgr as deprecated and fix uses of it to use namespaced version

This commit is contained in:
Tim Wojtulewicz 2020-07-02 13:08:41 -07:00
parent 3098dd6fbb
commit 86fdf0eaa9
134 changed files with 1579 additions and 1580 deletions

View file

@ -85,23 +85,23 @@ struct val_converter {
result_type operator()(bool a)
{
if ( type->Tag() == zeek::TYPE_BOOL )
return val_mgr->Bool(a);
return zeek::val_mgr->Bool(a);
return nullptr;
}
result_type operator()(uint64_t a)
{
if ( type->Tag() == zeek::TYPE_COUNT )
return val_mgr->Count(a);
return zeek::val_mgr->Count(a);
if ( type->Tag() == zeek::TYPE_COUNTER )
return val_mgr->Count(a);
return zeek::val_mgr->Count(a);
return nullptr;
}
result_type operator()(int64_t a)
{
if ( type->Tag() == zeek::TYPE_INT )
return val_mgr->Int(a);
return zeek::val_mgr->Int(a);
return nullptr;
}
@ -156,7 +156,7 @@ struct val_converter {
result_type operator()(broker::port& a)
{
if ( type->Tag() == zeek::TYPE_PORT )
return val_mgr->Port(a.number(), bro_broker::to_bro_port_proto(a.type()));
return zeek::val_mgr->Port(a.number(), bro_broker::to_bro_port_proto(a.type()));
return nullptr;
}