mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Move Func and associated classes into zeek::detail namespace
This commit is contained in:
parent
937a462e70
commit
d6f1ea16ac
51 changed files with 516 additions and 453 deletions
|
@ -9,8 +9,10 @@
|
|||
#include <unordered_set>
|
||||
#include <string>
|
||||
|
||||
class Func;
|
||||
using FuncPtr = zeek::IntrusivePtr<Func>;
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Func, zeek::detail);
|
||||
namespace zeek::detail {
|
||||
using FuncPtr = zeek::IntrusivePtr<zeek::detail::Func>;
|
||||
}
|
||||
|
||||
class EventHandler {
|
||||
public:
|
||||
|
@ -18,11 +20,11 @@ public:
|
|||
|
||||
const char* Name() { return name.data(); }
|
||||
|
||||
const FuncPtr& GetFunc()
|
||||
const zeek::detail::FuncPtr& GetFunc()
|
||||
{ return local; }
|
||||
|
||||
[[deprecated("Remove in v4.1. Use GetFunc().")]]
|
||||
Func* LocalHandler() { return local.get(); }
|
||||
zeek::detail::Func* LocalHandler() { return local.get(); }
|
||||
|
||||
const zeek::FuncTypePtr& GetType(bool check_export = true);
|
||||
|
||||
|
@ -30,10 +32,10 @@ public:
|
|||
zeek::FuncType* FType(bool check_export = true)
|
||||
{ return GetType().get(); }
|
||||
|
||||
void SetFunc(FuncPtr f);
|
||||
void SetFunc(zeek::detail::FuncPtr f);
|
||||
|
||||
[[deprecated("Remove in v4.1. Use SetFunc().")]]
|
||||
void SetLocalHandler(Func* f);
|
||||
void SetLocalHandler(zeek::detail::Func* f);
|
||||
|
||||
void AutoPublish(std::string topic)
|
||||
{
|
||||
|
@ -69,7 +71,7 @@ private:
|
|||
void NewEvent(zeek::Args* vl); // Raise new_event() meta event.
|
||||
|
||||
std::string name;
|
||||
FuncPtr local;
|
||||
zeek::detail::FuncPtr local;
|
||||
zeek::FuncTypePtr type;
|
||||
bool used; // this handler is indeed used somewhere
|
||||
bool enabled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue