From: Jason Ish Date: Fri, 15 Sep 2023 20:49:11 +0000 (-0600) Subject: output-flow.h: include flow.h and decode.h X-Git-Tag: suricata-8.0.0-beta1~927 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5ac43922637315a3f99d08a9a22d605b9ad597d;p=thirdparty%2Fsuricata.git output-flow.h: include flow.h and decode.h 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 --- diff --git a/src/output-flow.h b/src/output-flow.h index fc6ba5b39e..906921b002 100644 --- a/src/output-flow.h +++ b/src/output-flow.h @@ -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);