]> git.ipfire.org Git - thirdparty/suricata.git/commit
Introduce 'file' logging API
authorVictor Julien <victor@inliniac.net>
Wed, 15 Jan 2014 12:22:47 +0000 (13:22 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 27 Jan 2014 14:20:59 +0000 (15:20 +0100)
commitee2a8a9cdac41bb2316ce33628ab4dc6a0d5c663
tree442c9fc105d56b438bed06ec8322c1170a4129c4
parentcef2eb01c5dbe36b1324c71bc4bc8fada9832091
Introduce 'file' logging API

This patch introduces a new logging API for logging extracted file info.
It allows for registration of a callback that is called once per file:
when it's considered 'closed'.

Users of this API register their Log Function through:
    OutputRegisterFileModule()

The API uses a magic settings globally. This might be changed later.
src/Makefile.am
src/output-file.c [new file with mode: 0644]
src/output-file.h [new file with mode: 0644]
src/output.c
src/output.h
src/runmodes.c
src/suricata.c
src/tm-threads-common.h