mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Internal refactoring to provide injection points for remotely received
log records. Also added some additional type-safety check to later make sure that what a peer sends is actually of the expected format.
This commit is contained in:
parent
e6edc52d54
commit
ba2c6f6139
4 changed files with 142 additions and 75 deletions
|
@ -25,11 +25,12 @@ public:
|
|||
// when done.
|
||||
bool Init(string path, int num_fields, LogField** fields);
|
||||
|
||||
// Writes one log entry. The method takes ownership of "vals" and will
|
||||
// return immediately after queueing the write request, potentially
|
||||
// before the output has actually taken place. Returns false if an error
|
||||
// occured, in which case the writer must not be used further.
|
||||
bool Write(LogVal** vals);
|
||||
// Writes one log entry. The method takes ownership of "vals" and will
|
||||
// return immediately after queueing the write request, potentially
|
||||
// before the output has actually taken place. Returns false if an error
|
||||
// occured, in which case the writer must not be used further. num_fields
|
||||
// and types must match what was passed to Init().
|
||||
bool Write(int num_fields, LogVal** vals);
|
||||
|
||||
// Sets the buffering status for the writer, if the writer supports it.
|
||||
bool SetBuf(bool enabled);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue