]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: clean up include on quic_frame-t.h
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 Jul 2022 12:49:39 +0000 (14:49 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 15 Jul 2022 12:54:24 +0000 (14:54 +0200)
quic_frame-t.h and xprt_quic-t.h include themselves mutually. This may
cause some troubles later.

In fact, xprt_quic does not need to include quic_frame so remove this.
And as quic_frame is a generic source file which is included in multiple
places, it is useful to also remove the xprt_quic include in it. Use
forward declaration for this.

include/haproxy/quic_frame-t.h
include/haproxy/xprt_quic-t.h

index 8aa95411b11c97aec62b9c82bd5ea8d753d43e89..f5945368ad5fc676aa5e5cf12e9dbb1dfb623653 100644 (file)
 #include <inttypes.h>
 #include <stdlib.h>
 
-#include <haproxy/list.h>
-
 #include <import/ebtree-t.h>
+#include <haproxy/buf-t.h>
+#include <haproxy/list.h>
+#include <haproxy/quic_stream-t.h>
 
-#include <haproxy/mux_quic-t.h>
-#include <haproxy/xprt_quic-t.h>
+/* forward declarations from xprt-quic */
+struct quic_arngs;
+struct quic_enc_level;
+struct quic_tx_packet;
 
 /* QUIC frame types. */
 enum quic_frame_type {
index 87127c25eb3c80057315d3094180835a137c6e8c..c07395f473747eb0b7ef3a55f0866e72a7d832d0 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <haproxy/mux_quic-t.h>
 #include <haproxy/quic_cc-t.h>
-#include <haproxy/quic_frame-t.h>
 #include <haproxy/quic_loss-t.h>
 #include <haproxy/quic_stats-t.h>
 #include <haproxy/quic_tls-t.h>