mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Merging master into branch.
Merge branch 'master' into topic/gilbert/plugin-api-tweak
This commit is contained in:
commit
0104d7147d
152 changed files with 4474 additions and 2552 deletions
|
@ -50,6 +50,18 @@ void Component::Describe(ODesc* d) const
|
|||
d->Add("File Analyzer");
|
||||
break;
|
||||
|
||||
case component::IOSOURCE:
|
||||
d->Add("I/O Source");
|
||||
break;
|
||||
|
||||
case component::PKTSRC:
|
||||
d->Add("Packet Source");
|
||||
break;
|
||||
|
||||
case component::PKTDUMPER:
|
||||
d->Add("Packet Dumper");
|
||||
break;
|
||||
|
||||
default:
|
||||
reporter->InternalWarning("unknown component type in plugin::Component::Describe");
|
||||
d->Add("<unknown component type>");
|
||||
|
|
|
@ -12,20 +12,23 @@ namespace plugin {
|
|||
namespace component {
|
||||
|
||||
/**
|
||||
* Component types.
|
||||
* Component types.
|
||||
*/
|
||||
enum Type {
|
||||
READER, /// An input reader (not currently used).
|
||||
WRITER, /// A logging writer (not currenly used).
|
||||
ANALYZER, /// A protocol analyzer.
|
||||
FILE_ANALYZER /// A file analyzer.
|
||||
FILE_ANALYZER, /// A file analyzer.
|
||||
IOSOURCE, /// An I/O source, excluding packet sources.
|
||||
PKTSRC, /// A packet source.
|
||||
PKTDUMPER /// A packet dumper.
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Base class for plugin components. A component is a specific piece of
|
||||
* functionality that a plugin provides, such as a protocol analyzer or a log
|
||||
* writer.
|
||||
* writer.
|
||||
*/
|
||||
class Component
|
||||
{
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "config.h"
|
||||
#include "analyzer/Component.h"
|
||||
#include "file_analysis/Component.h"
|
||||
#include "iosource/Component.h"
|
||||
|
||||
// We allow to override this externally for testing purposes.
|
||||
#ifndef BRO_PLUGIN_API_VERSION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue