CLEANUP: quic: clean up include on quic_frame-t.h

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.
This commit is contained in:
Amaury Denoyelle 2022-07-13 14:49:39 +02:00
parent 72d86509f1
commit 41cd879383
2 changed files with 7 additions and 5 deletions

View File

@ -29,12 +29,15 @@
#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 {

View 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>