BUG/MINOR: xprt_qstrm: fix conflicting prototype

This patch adds the missing include of xprt_qstrm header into its
companion source file. This helped to detect an incoherence in the
xprt_qstrm_xfer_rxbuf() prototype which is now fixed.

Header files is also updated with mandatory include statements and
forward declaration.

No backport needed.
This commit is contained in:
Amaury Denoyelle 2026-05-11 10:27:20 +02:00
parent b24260ec94
commit 7e2f0fa178
2 changed files with 8 additions and 1 deletions

View File

@ -1,9 +1,14 @@
#ifndef _HAPROXY_XPRT_QSTRM_H
#define _HAPROXY_XPRT_QSTRM_H
#include <stddef.h>
struct buffer;
struct quic_transport_params;
const struct quic_transport_params *xprt_qstrm_lparams(const void *context);
const struct quic_transport_params *xprt_qstrm_rparams(const void *context);
size_t xprt_qstrm_xfer_rxbuf(const void *context, struct buffer *out);
size_t xprt_qstrm_xfer_rxbuf(void *context, struct buffer *out);
#endif /* _HAPROXY_XPRT_QSTRM_H */

View File

@ -1,3 +1,5 @@
#include <haproxy/xprt_qstrm.h>
#include <haproxy/api.h>
#include <haproxy/buf.h>
#include <haproxy/connection.h>