mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Move IntrusivePtr and utility methods to the zeek namespace
This commit is contained in:
parent
4668378d91
commit
9364e6a5b7
255 changed files with 3761 additions and 3730 deletions
|
@ -50,9 +50,9 @@ public:
|
|||
|
||||
// Looks up the address or addresses of the given host, and returns
|
||||
// a set of addr.
|
||||
IntrusivePtr<TableVal> LookupHost(const char* host);
|
||||
zeek::IntrusivePtr<TableVal> LookupHost(const char* host);
|
||||
|
||||
IntrusivePtr<Val> LookupAddr(const IPAddr& addr);
|
||||
zeek::IntrusivePtr<Val> LookupAddr(const IPAddr& addr);
|
||||
|
||||
// Define the directory where to store the data.
|
||||
void SetDir(const char* arg_dir) { dir = copy_string(arg_dir); }
|
||||
|
@ -62,7 +62,7 @@ public:
|
|||
bool Save();
|
||||
|
||||
const char* LookupAddrInCache(const IPAddr& addr);
|
||||
IntrusivePtr<TableVal> LookupNameInCache(const std::string& name);
|
||||
zeek::IntrusivePtr<TableVal> LookupNameInCache(const std::string& name);
|
||||
const char* LookupTextInCache(const std::string& name);
|
||||
|
||||
// Support for async lookups.
|
||||
|
@ -100,14 +100,14 @@ protected:
|
|||
|
||||
void Event(EventHandlerPtr e, DNS_Mapping* dm);
|
||||
void Event(EventHandlerPtr e, DNS_Mapping* dm,
|
||||
IntrusivePtr<ListVal> l1, IntrusivePtr<ListVal> l2);
|
||||
zeek::IntrusivePtr<ListVal> l1, zeek::IntrusivePtr<ListVal> l2);
|
||||
void Event(EventHandlerPtr e, DNS_Mapping* old_dm, DNS_Mapping* new_dm);
|
||||
|
||||
IntrusivePtr<Val> BuildMappingVal(DNS_Mapping* dm);
|
||||
zeek::IntrusivePtr<Val> BuildMappingVal(DNS_Mapping* dm);
|
||||
|
||||
void AddResult(DNS_Mgr_Request* dr, struct nb_dns_result* r);
|
||||
void CompareMappings(DNS_Mapping* prev_dm, DNS_Mapping* new_dm);
|
||||
IntrusivePtr<ListVal> AddrListDelta(ListVal* al1, ListVal* al2);
|
||||
zeek::IntrusivePtr<ListVal> AddrListDelta(ListVal* al1, ListVal* al2);
|
||||
void DumpAddrList(FILE* f, ListVal* al);
|
||||
|
||||
typedef std::map<std::string, std::pair<DNS_Mapping*, DNS_Mapping*> > HostMap;
|
||||
|
@ -151,7 +151,7 @@ protected:
|
|||
|
||||
bool did_init;
|
||||
|
||||
IntrusivePtr<zeek::RecordType> dm_rec;
|
||||
zeek::IntrusivePtr<zeek::RecordType> dm_rec;
|
||||
|
||||
typedef std::list<LookupCallback*> CallbackList;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue