mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
A number of smaller API extensions to provide plugins with access to
information.
This commit is contained in:
parent
79531a4538
commit
d88b333353
13 changed files with 127 additions and 35 deletions
|
@ -440,6 +440,11 @@ protected:
|
|||
* is about to load, either given on the command line or via @load
|
||||
* script directives. The hook can take over the file, in which case
|
||||
* Bro not further process it otherwise.
|
||||
*
|
||||
* @param file The filename to be loaded.
|
||||
*
|
||||
* @param ext The extension of the filename. This is provided separately
|
||||
* just for convenience. The dot is excluded.
|
||||
*
|
||||
* @return 1 if the plugin took over the file and loaded it
|
||||
* successfully; 0 if the plugin took over the file but had trouble
|
||||
|
@ -447,7 +452,7 @@ protected:
|
|||
* printed an error message); and -1 if the plugin wasn't interested
|
||||
* in the file at all.
|
||||
*/
|
||||
virtual int HookLoadFile(const std::string& file);
|
||||
virtual int HookLoadFile(const std::string& file, const std::string& ext);
|
||||
|
||||
/**
|
||||
* Hook into executing a script-level function/event/hook. Whenever
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue