broker/Eventhandler: Deprecate Broker::auto_publish() for v8.1

Relates to #3637
This commit is contained in:
Arne Welzel 2024-11-06 15:15:04 +01:00
parent 455e05bc2e
commit 6abb9d7eda
6 changed files with 29 additions and 5 deletions

View file

@ -35,9 +35,15 @@ public:
void SetFunc(FuncPtr f);
void AutoPublish(std::string topic) { auto_publish.insert(std::move(topic)); }
[[deprecated("Remove in v8.1, use explicit Publish().")]]
void AutoPublish(std::string topic) {
auto_publish.insert(std::move(topic));
}
void AutoUnpublish(const std::string& topic) { auto_publish.erase(topic); }
[[deprecated("Remove in v8.1.")]]
void AutoUnpublish(const std::string& topic) {
auto_publish.erase(topic);
}
void Call(zeek::Args* vl, bool no_remote = false, double ts = run_state::network_time);