mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Factor out the need for a tag field in Files::AnalyzerArgs record.
This cleans up internals of how analyzer instances get identified by the tag plus any args given to it and doesn't change script code a user would write.
This commit is contained in:
parent
8df4df0b8b
commit
5fa9c5865b
14 changed files with 177 additions and 107 deletions
|
@ -4,11 +4,13 @@
|
|||
|
||||
#include "Extract.h"
|
||||
#include "util.h"
|
||||
#include "file_analysis/Manager.h"
|
||||
|
||||
using namespace file_analysis;
|
||||
|
||||
Extract::Extract(RecordVal* args, File* file, const string& arg_filename)
|
||||
: file_analysis::Analyzer(args, file), filename(arg_filename)
|
||||
: file_analysis::Analyzer(file_mgr->GetAnalyzerTag("EXTRACT"), args, file),
|
||||
filename(arg_filename)
|
||||
{
|
||||
fd = open(filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue