]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: stats: define several missing structures in stats.h
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 07:14:06 +0000 (09:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:36:51 +0000 (01:36 +0200)
channel, stream_interface, appctx, buffer, proxy and htx ones are used
in function arguments and most of them are not defined but were inherited
from intermediary inclues. Let's define them here and drop the unneeded
includes.

include/haproxy/stats.h

index bdb9c076c2630e8050a88b2b1d0d8d5edacfd005..8c3aa8d8a5d903df5a069cd8208ecea16acbbf75 100644 (file)
 #define _HAPROXY_STATS_H
 
 #include <haproxy/api.h>
-#include <haproxy/applet-t.h>
 #include <haproxy/stats-t.h>
-#include <haproxy/stream_interface-t.h>
-#include <haproxy/tools-t.h>
 
+struct stream_interface;
+struct channel;
+struct buffer;
+struct proxy;
+struct appctx;
+struct htx;
 
 /* These two structs contains all field names and descriptions according to
  * the the number of entries in "enum stat_field" and "enum info_field"