summaryrefslogtreecommitdiffstats
path: root/include/haproxy/quic_fctl.h
blob: 8818372aecac5441c697ab335663090816f97e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _HAPROXY_QUIC_FCTL_H
#define _HAPROXY_QUIC_FCTL_H

#include <haproxy/quic_fctl-t.h>

void qfctl_init(struct quic_fctl *fctl, uint64_t limit);

int qfctl_rblocked(const struct quic_fctl *fctl);
int qfctl_sblocked(const struct quic_fctl *fctl);

int qfctl_set_max(struct quic_fctl *fctl, uint64_t val,
                  int *unblock_soft, int *unblock_real);

int qfctl_rinc(struct quic_fctl *fctl, uint64_t diff);
int qfctl_sinc(struct quic_fctl *fctl, uint64_t diff);

uint64_t qfctl_rcap(const struct quic_fctl *fctl);

#endif /* _HAPROXY_QUIC_FCTL_H */