From: Willy Tarreau Date: Wed, 6 Oct 2021 14:39:28 +0000 (+0200) Subject: CLEANUP: stream: remove many unneeded includes from stream-t.h X-Git-Tag: v2.5-dev9~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=172c17b21e670ffb346a4daa627c535c12313dde;p=thirdparty%2Fhaproxy.git CLEANUP: stream: remove many unneeded includes from stream-t.h Plenty of includes were present there only for struct pointers resulting in them being used from many other places. The LoC reduced again by more than 1% by cleaning this. --- diff --git a/include/haproxy/stream-t.h b/include/haproxy/stream-t.h index e5482a2e86..3a6b9b4b88 100644 --- a/include/haproxy/stream-t.h +++ b/include/haproxy/stream-t.h @@ -22,24 +22,13 @@ #ifndef _HAPROXY_STREAM_T_H #define _HAPROXY_STREAM_T_H -#include -#include -#include - #include #include #include #include -#include -#include #include -#include -#include -#include -#include #include #include -#include #include @@ -97,6 +86,14 @@ #define PCLI_F_PROMPT 0x4 #define PCLI_F_PAYLOAD 0x8 +struct hlua; +struct proxy; +struct pendconn; +struct session; +struct server; +struct task; +struct sockaddr_storage; + /* some external definitions */ struct strm_logs { int logwait; /* log fields waiting to be collected : LW_* */ diff --git a/include/haproxy/stream.h b/include/haproxy/stream.h index e89383da0c..00f8175e19 100644 --- a/include/haproxy/stream.h +++ b/include/haproxy/stream.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include