]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output-flow.h: include flow.h and decode.h
authorJason Ish <jason.ish@oisf.net>
Fri, 15 Sep 2023 20:49:11 +0000 (14:49 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 31 Aug 2024 08:53:59 +0000 (10:53 +0200)
A library/plugin user wanting to register a custom flow logger must
include "output-flow.h", however that depends on some other includes.
One train of thought with respect to include files in libraries, is
that they should include all their dependencies on behalf of the
user. To make a custom flow logger just a little easier, include
"flow.h" and "decode.h".

Ticket: #7227

src/output-flow.h

index fc6ba5b39ef43deba240319d7275b5ee2e8561d9..906921b0028efc23f3d17205b9814d9fa899c9a4 100644 (file)
@@ -26,7 +26,9 @@
 #ifndef SURICATA_OUTPUT_FLOW_H
 #define SURICATA_OUTPUT_FLOW_H
 
+#include "decode.h"
 #include "tm-modules.h"
+#include "flow.h"
 
 /** flow logger function pointer type */
 typedef int (*FlowLogger)(ThreadVars *, void *thread_data, Flow *f);