MINOR: quic: export TPs related functions
This commit is contained in:
parent
c87799652a
commit
9990c9353b
@ -120,5 +120,12 @@ static inline void quic_transport_params_dump(struct buffer *b,
|
||||
quic_tp_version_info_dump(b, &p->version_information, local);
|
||||
}
|
||||
|
||||
int quic_transport_param_enc_int(unsigned char **buf,
|
||||
const unsigned char *end,
|
||||
uint64_t type, uint64_t val);
|
||||
int quic_transport_params_decode(struct quic_transport_params *p, int server,
|
||||
const unsigned char *buf,
|
||||
const unsigned char *end);
|
||||
|
||||
#endif /* USE_QUIC */
|
||||
#endif /* _HAPROXY_QUIC_TP_H */
|
||||
|
@ -394,9 +394,9 @@ static int quic_transport_param_enc_mem(unsigned char **buf, const unsigned char
|
||||
/* Encode <val> 64-bits value as variable length integer into <buf>.
|
||||
* Returns 1 if succeeded, 0 if not.
|
||||
*/
|
||||
static int quic_transport_param_enc_int(unsigned char **buf,
|
||||
const unsigned char *end,
|
||||
uint64_t type, uint64_t val)
|
||||
int quic_transport_param_enc_int(unsigned char **buf,
|
||||
const unsigned char *end,
|
||||
uint64_t type, uint64_t val)
|
||||
{
|
||||
size_t len;
|
||||
|
||||
@ -598,9 +598,9 @@ int quic_transport_params_encode(unsigned char *buf,
|
||||
* or 0 for a client (connection to a haproxy server).
|
||||
* Returns 1 if succeeded, 0 if not.
|
||||
*/
|
||||
static int quic_transport_params_decode(struct quic_transport_params *p, int server,
|
||||
const unsigned char *buf,
|
||||
const unsigned char *end)
|
||||
int quic_transport_params_decode(struct quic_transport_params *p, int server,
|
||||
const unsigned char *buf,
|
||||
const unsigned char *end)
|
||||
{
|
||||
const unsigned char *pos;
|
||||
uint64_t type, len = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user