]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: mux-quic: adjust includes statements
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 2 Dec 2026 09:02:09 +0000 (10:02 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 2 Dec 2026 10:09:33 +0000 (11:09 +0100)
Add missing include statements in the MUX QUIC module and remove the
unneeded ones. Also convert some of them to forward declarations in a
header file to reduce the dependency chain.

include/haproxy/mux_quic-t.h
include/haproxy/mux_quic.h
include/haproxy/qcm_trace.h
src/mux_quic.c
src/qcm_http.c

index f5e21102b6606457ea8cb5608d18f7f2ccf1fbae..970d15fd7bd4d525998102f62d8d1b31524da3b4 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <haproxy/buf-t.h>
 #include <haproxy/connection-t.h>
-#include <haproxy/htx-t.h>
 #include <haproxy/list-t.h>
 #include <haproxy/ncbuf-t.h>
 #include <haproxy/quic_fctl-t.h>
 #include <haproxy/quic_pacing-t.h>
 #include <haproxy/quic_stream-t.h>
 #include <haproxy/quic_utils-t.h>
-#include <haproxy/session-t.h>
-#include <haproxy/stconn-t.h>
 #include <haproxy/task-t.h>
 #include <haproxy/time-t.h>
 
+struct proxy;
+struct session;
+struct sedesc;
+
 /* Stream types */
 enum qcs_type {
        QCS_CLT_BIDI,
index b92128dd5fb3241ed0a0adc044db629ccbc830a8..04f821f4606e86d8d7c522c75c9710c248597a66 100644 (file)
@@ -6,12 +6,13 @@
 #error "Must define USE_OPENSSL"
 #endif
 
+#include <haproxy/mux_quic-t.h>
+
 #include <haproxy/api.h>
 #include <haproxy/connection.h>
+#include <haproxy/global-t.h>
 #include <haproxy/list.h>
-#include <haproxy/mux_quic-t.h>
 #include <haproxy/quic_tune.h>
-#include <haproxy/stconn.h>
 
 #include <haproxy/h3.h>
 #include <haproxy/hq_interop.h>
index 113bfcec0db617016a3bb714480abe5de4257bc9..47de5e8de6ac56e9d9ac2c50dd7cdb7dc3e3c048 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef USE_QUIC
 
-#include <haproxy/api-t.h>
 #include <haproxy/buf.h>
 #include <haproxy/trace.h>
 
index 2bf53659f71a85f9d8462a3c1b91dfe18e5c2dbc..52e6c1a8e9dfaa7420f1c13f6c74d41742a8fa47 100644 (file)
@@ -18,7 +18,6 @@
 #include <haproxy/qcm_qmux.h>
 #include <haproxy/qcm_trace.h>
 #include <haproxy/quic_conn.h>
-#include <haproxy/quic_enc.h>
 #include <haproxy/quic_fctl.h>
 #include <haproxy/quic_frame.h>
 #include <haproxy/quic_pacing.h>
 #include <haproxy/quic_tx.h>
 #include <haproxy/quic_utils.h>
 #include <haproxy/session.h>
-#include <haproxy/server-t.h>
-#include <haproxy/ssl_sock-t.h>
+#include <haproxy/server.h>
 #include <haproxy/stconn.h>
+#include <haproxy/task.h>
+#include <haproxy/ticks.h>
 #include <haproxy/time.h>
 #include <haproxy/trace.h>
 #include <haproxy/xprt_qmux.h>
-#include <haproxy/xref.h>
 
 DECLARE_TYPED_POOL(pool_head_qcc, "qcc", struct qcc);
 DECLARE_TYPED_POOL(pool_head_qcs, "qcs", struct qcs);
index 9cbf37ba8b6ec086bb6dff494b0cca2bf484b7e2..92c15762696f3fd4c28a8739cdd1af0350593313 100644 (file)
@@ -1,6 +1,5 @@
 #include <haproxy/qcm_http.h>
 
-#include <haproxy/api-t.h>
 #include <haproxy/htx.h>
 #include <haproxy/qcm_trace.h>