mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Base: Clean up explicit uses of namespaces in places where they're not necessary.
This commit covers all of the common and base classes.
This commit is contained in:
parent
9f802b2a4d
commit
fe0c22c789
240 changed files with 6823 additions and 6787 deletions
|
@ -12,7 +12,7 @@
|
|||
ZEEK_FORWARD_DECLARE_NAMESPACED(Func, zeek);
|
||||
|
||||
namespace zeek {
|
||||
using FuncPtr = zeek::IntrusivePtr<zeek::Func>;
|
||||
using FuncPtr = IntrusivePtr<Func>;
|
||||
|
||||
class EventHandler {
|
||||
public:
|
||||
|
@ -20,22 +20,22 @@ public:
|
|||
|
||||
const char* Name() { return name.data(); }
|
||||
|
||||
const zeek::FuncPtr& GetFunc()
|
||||
const FuncPtr& GetFunc()
|
||||
{ return local; }
|
||||
|
||||
[[deprecated("Remove in v4.1. Use GetFunc().")]]
|
||||
zeek::Func* LocalHandler() { return local.get(); }
|
||||
Func* LocalHandler() { return local.get(); }
|
||||
|
||||
const zeek::FuncTypePtr& GetType(bool check_export = true);
|
||||
const FuncTypePtr& GetType(bool check_export = true);
|
||||
|
||||
[[deprecated("Remove in v4.1. Use GetType().")]]
|
||||
zeek::FuncType* FType(bool check_export = true)
|
||||
FuncType* FType(bool check_export = true)
|
||||
{ return GetType().get(); }
|
||||
|
||||
void SetFunc(zeek::FuncPtr f);
|
||||
void SetFunc(FuncPtr f);
|
||||
|
||||
[[deprecated("Remove in v4.1. Use SetFunc().")]]
|
||||
void SetLocalHandler(zeek::Func* f);
|
||||
void SetLocalHandler(Func* f);
|
||||
|
||||
void AutoPublish(std::string topic)
|
||||
{
|
||||
|
@ -71,8 +71,8 @@ private:
|
|||
void NewEvent(zeek::Args* vl); // Raise new_event() meta event.
|
||||
|
||||
std::string name;
|
||||
zeek::FuncPtr local;
|
||||
zeek::FuncTypePtr type;
|
||||
FuncPtr local;
|
||||
FuncTypePtr type;
|
||||
bool used; // this handler is indeed used somewhere
|
||||
bool enabled;
|
||||
bool error_handler; // this handler reports error messages.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue