Move IntrusivePtr and utility methods to the zeek namespace

This commit is contained in:
Tim Wojtulewicz 2020-06-24 16:40:00 -04:00
parent 4668378d91
commit 9364e6a5b7
255 changed files with 3761 additions and 3730 deletions

View file

@ -43,7 +43,7 @@ public:
* @param args an \c AnalyzerArgs record.
* @return pointer to an analyzer instance, or a null pointer if not found.
*/
Analyzer* Find(const file_analysis::Tag& tag, IntrusivePtr<RecordVal> args);
Analyzer* Find(const file_analysis::Tag& tag, zeek::IntrusivePtr<RecordVal> args);
/**
* Attach an analyzer to #file immediately.
@ -51,7 +51,7 @@ public:
* @param args an \c AnalyzerArgs value which specifies an analyzer.
* @return true if analyzer was instantiated/attached, else false.
*/
bool Add(const file_analysis::Tag& tag, IntrusivePtr<RecordVal> args);
bool Add(const file_analysis::Tag& tag, zeek::IntrusivePtr<RecordVal> args);
/**
* Queue the attachment of an analyzer to #file.
@ -61,7 +61,7 @@ public:
* a null pointer. The caller does *not* take ownership of the memory.
*/
file_analysis::Analyzer* QueueAdd(const file_analysis::Tag& tag,
IntrusivePtr<RecordVal> args);
zeek::IntrusivePtr<RecordVal> args);
/**
* Remove an analyzer from #file immediately.
@ -69,7 +69,7 @@ public:
* @param args an \c AnalyzerArgs value which specifies an analyzer.
* @return false if analyzer didn't exist and so wasn't removed, else true.
*/
bool Remove(const file_analysis::Tag& tag, IntrusivePtr<RecordVal> args);
bool Remove(const file_analysis::Tag& tag, zeek::IntrusivePtr<RecordVal> args);
/**
* Queue the removal of an analyzer from #file.
@ -77,7 +77,7 @@ public:
* @param args an \c AnalyzerArgs value which specifies an analyzer.
* @return true if analyzer exists at time of call, else false;
*/
bool QueueRemove(const file_analysis::Tag& tag, IntrusivePtr<RecordVal> args);
bool QueueRemove(const file_analysis::Tag& tag, zeek::IntrusivePtr<RecordVal> args);
/**
* Perform all queued modifications to the current analyzer set.
@ -111,7 +111,7 @@ protected:
* @return the hash key calculated from \a args
*/
std::unique_ptr<HashKey> GetKey(const file_analysis::Tag& tag,
IntrusivePtr<RecordVal> args) const;
zeek::IntrusivePtr<RecordVal> args) const;
/**
* Create an instance of a file analyzer.
@ -120,7 +120,7 @@ protected:
* @return a new file analyzer instance.
*/
file_analysis::Analyzer* InstantiateAnalyzer(const file_analysis::Tag& tag,
IntrusivePtr<RecordVal> args) const;
zeek::IntrusivePtr<RecordVal> args) const;
/**
* Insert an analyzer instance in to the set.