mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Move Type types to zeek namespace
This commit is contained in:
parent
4a1b39a2be
commit
ed13972924
120 changed files with 2094 additions and 1934 deletions
|
@ -7,7 +7,7 @@
|
|||
#include <set>
|
||||
#include <string>
|
||||
|
||||
static bool is_string_set(const BroType* type)
|
||||
static bool is_string_set(const zeek::BroType* type)
|
||||
{
|
||||
if ( ! type->IsSet() )
|
||||
return false;
|
||||
|
@ -17,14 +17,14 @@ static bool is_string_set(const BroType* type)
|
|||
if ( index_types.size() != 1 )
|
||||
return false;
|
||||
|
||||
return index_types[0]->Tag() == TYPE_STRING;
|
||||
return index_types[0]->Tag() == zeek::TYPE_STRING;
|
||||
}
|
||||
|
||||
std::set<std::string> val_to_topic_set(Val* val)
|
||||
{
|
||||
std::set<std::string> rval;
|
||||
|
||||
if ( val->GetType()->Tag() == TYPE_STRING )
|
||||
if ( val->GetType()->Tag() == zeek::TYPE_STRING )
|
||||
rval.emplace(val->AsString()->CheckString());
|
||||
else
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ static bool publish_event_args(val_list& args, const BroString* topic,
|
|||
bro_broker::Manager::ScriptScopeGuard ssg;
|
||||
auto rval = false;
|
||||
|
||||
if ( args[0]->GetType()->Tag() == TYPE_RECORD )
|
||||
if ( args[0]->GetType()->Tag() == zeek::TYPE_RECORD )
|
||||
rval = broker_mgr->PublishEvent(topic->CheckString(),
|
||||
args[0]->AsRecordVal());
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue