]> git.ipfire.org Git - thirdparty/suricata.git/commit
eve/filetypes: common init for threaded and non-threaded
authorJason Ish <jason.ish@oisf.net>
Fri, 8 Mar 2024 06:23:25 +0000 (00:23 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 16 Mar 2024 08:29:34 +0000 (09:29 +0100)
commitbd55cd4c5500c7e3f00026fec9bdd057493439ff
tree339d5ddebc9993ae1390c1de79d01dda4359ff0f
parent3ff72d3efa3eb717e5e6794a96d04266311e1fc2
eve/filetypes: common init for threaded and non-threaded

In 7.0 if EVE was non-threaded, the ThreadInit for the filetype was
not called meaning that the filetype author had to handle the threaded
and non-threaded cases.

To simplify this, if non-threaded, still call ThreadInit (and
ThreadDeinit) once with a thread_id of 0. This should simplify
authoring EVE filetype plugins.
examples/plugins/c-json-filetype/filetype.c
src/output-json.c
src/util-logopenfile.c