mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Replace uses of the old Dict generation code with new template versions
This commit is contained in:
parent
e2feec52be
commit
50943a580c
26 changed files with 62 additions and 94 deletions
|
@ -26,9 +26,6 @@
|
|||
|
||||
namespace file_analysis {
|
||||
|
||||
declare(PDict,bool);
|
||||
declare(PDict,File);
|
||||
|
||||
/**
|
||||
* Main entry point for interacting with file analysis.
|
||||
*/
|
||||
|
@ -339,8 +336,8 @@ public:
|
|||
protected:
|
||||
friend class FileTimer;
|
||||
|
||||
typedef PDict(bool) IDSet;
|
||||
typedef PDict(File) IDMap;
|
||||
typedef PDict<bool> IDSet;
|
||||
typedef PDict<File> IDMap;
|
||||
|
||||
/**
|
||||
* Create a new file to be analyzed or retrieve an existing one.
|
||||
|
@ -410,8 +407,8 @@ private:
|
|||
|
||||
TagSet* LookupMIMEType(const string& mtype, bool add_if_not_found);
|
||||
|
||||
PDict(File) id_map; /**< Map file ID to file_analysis::File records. */
|
||||
PDict(bool) ignored; /**< Ignored files. Will be finally removed on EOF. */
|
||||
PDict<File> id_map; /**< Map file ID to file_analysis::File records. */
|
||||
PDict<bool> ignored; /**< Ignored files. Will be finally removed on EOF. */
|
||||
string current_file_id; /**< Hash of what get_file_handle event sets. */
|
||||
RuleFileMagicState* magic_state; /**< File magic signature match state. */
|
||||
MIMEMap mime_types;/**< Mapping of MIME types to analyzers. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue