mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Move notifier code to zeek::notifier::detail namespace
This commit is contained in:
parent
1262109e5a
commit
cba1bc18a5
7 changed files with 43 additions and 28 deletions
|
@ -388,7 +388,7 @@ void Trigger::Timeout()
|
|||
void Trigger::Register(zeek::detail::ID* id)
|
||||
{
|
||||
assert(! disabled);
|
||||
notifier::registry.Register(id, this);
|
||||
zeek::notifier::detail::registry.Register(id, this);
|
||||
|
||||
Ref(id);
|
||||
objs.push_back({id, id});
|
||||
|
@ -400,7 +400,7 @@ void Trigger::Register(Val* val)
|
|||
return;
|
||||
|
||||
assert(! disabled);
|
||||
notifier::registry.Register(val->Modifiable(), this);
|
||||
zeek::notifier::detail::registry.Register(val->Modifiable(), this);
|
||||
|
||||
Ref(val);
|
||||
objs.emplace_back(val, val->Modifiable());
|
||||
|
@ -412,7 +412,7 @@ void Trigger::UnregisterAll()
|
|||
|
||||
for ( const auto& o : objs )
|
||||
{
|
||||
notifier::registry.Unregister(o.second, this);
|
||||
zeek::notifier::detail::registry.Unregister(o.second, this);
|
||||
Unref(o.first);
|
||||
}
|
||||
|
||||
|
@ -478,7 +478,7 @@ void Trigger::Describe(ODesc* d) const
|
|||
d->Add("<trigger>");
|
||||
}
|
||||
|
||||
void Trigger::Modified(notifier::Modifiable* m)
|
||||
void Trigger::Modified(zeek::notifier::detail::Modifiable* m)
|
||||
{
|
||||
trigger_mgr->Queue(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue