mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Move file_analysis code to zeek namespaces
This commit is contained in:
parent
8411adf9e1
commit
14408235b8
66 changed files with 554 additions and 410 deletions
|
@ -9,12 +9,12 @@
|
|||
#include "Analyzer.h"
|
||||
#include "EventHandler.h"
|
||||
|
||||
namespace file_analysis {
|
||||
namespace zeek::file_analysis::detail {
|
||||
|
||||
/**
|
||||
* An analyzer to send file data to script-layer via events.
|
||||
*/
|
||||
class DataEvent : public file_analysis::Analyzer {
|
||||
class DataEvent : public zeek::file_analysis::Analyzer {
|
||||
public:
|
||||
|
||||
/**
|
||||
|
@ -43,8 +43,8 @@ public:
|
|||
* @return the new DataEvent analyzer instance or a null pointer if
|
||||
* no "chunk_event" or "stream_event" field was specfied in \a args.
|
||||
*/
|
||||
static file_analysis::Analyzer* Instantiate(zeek::RecordValPtr args,
|
||||
File* file);
|
||||
static zeek::file_analysis::Analyzer* Instantiate(zeek::RecordValPtr args,
|
||||
zeek::file_analysis::File* file);
|
||||
|
||||
protected:
|
||||
|
||||
|
@ -57,7 +57,7 @@ protected:
|
|||
* @param se pointer to event handler which will be called to receive
|
||||
* sequential file data.
|
||||
*/
|
||||
DataEvent(zeek::RecordValPtr args, File* file,
|
||||
DataEvent(zeek::RecordValPtr args, zeek::file_analysis::File* file,
|
||||
zeek::EventHandlerPtr ce, zeek::EventHandlerPtr se);
|
||||
|
||||
private:
|
||||
|
@ -65,4 +65,10 @@ private:
|
|||
zeek::EventHandlerPtr stream_event;
|
||||
};
|
||||
|
||||
} // namespace zeek::file_analysis::detail
|
||||
|
||||
namespace file_analysis {
|
||||
|
||||
using DataEvent [[deprecated("Remove in v4.1. Use zeek::file_analysis::detail::DataEvent.")]] = zeek::file_analysis::detail::DataEvent;
|
||||
|
||||
} // namespace file_analysis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue