From 172c17b21e670ffb346a4daa627c535c12313dde Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 6 Oct 2021 16:39:28 +0200 Subject: [PATCH] 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. --- include/haproxy/stream-t.h | 19 ++++++++----------- include/haproxy/stream.h | 1 + 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/include/haproxy/stream-t.h b/include/haproxy/stream-t.h index e5482a2..3a6b9b4 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 e89383d..00f8175 100644 --- a/include/haproxy/stream.h +++ b/include/haproxy/stream.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include -- 1.7.10.4