mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Improve Func.h inclusion
Now forward declares some Broker types since Broker/CAF headers generally slow things down and also Coverity Scan currently has a catastrophic error on some CAF headers. Also a few other changes to EventHandler/BifReturnVal to reduce number of places that depend on Func.h.
This commit is contained in:
parent
ef6bd3ee39
commit
2893eea045
11 changed files with 66 additions and 36 deletions
|
@ -5,11 +5,12 @@
|
|||
#include "BroList.h"
|
||||
#include "ZeekArgs.h"
|
||||
#include "Type.h"
|
||||
#include "Func.h"
|
||||
|
||||
#include <unordered_set>
|
||||
#include <string>
|
||||
|
||||
class Func;
|
||||
|
||||
class EventHandler {
|
||||
public:
|
||||
explicit EventHandler(std::string name);
|
||||
|
@ -28,12 +29,10 @@ public:
|
|||
FuncType* FType(bool check_export = true)
|
||||
{ return GetType().get(); }
|
||||
|
||||
void SetFunc(IntrusivePtr<Func> f)
|
||||
{ local = std::move(f); }
|
||||
void SetFunc(IntrusivePtr<Func> f);
|
||||
|
||||
[[deprecated("Remove in v4.1. Use SetFunc().")]]
|
||||
void SetLocalHandler(Func* f)
|
||||
{ SetFunc({NewRef{}, f}); }
|
||||
void SetLocalHandler(Func* f);
|
||||
|
||||
void AutoPublish(std::string topic)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue