]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: mux-h2: extract flags and enums into mux_h2-t.h
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Sep 2022 17:07:51 +0000 (19:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Sep 2022 17:33:07 +0000 (19:33 +0200)
commit6c0fadfb7df3a923a9765beac9a38e5d0ceccd1d
tree91bfd9e6602e0a74ffea29610e0d7e32f22054ec
parent799e5410b49b319ae20698a1b91232c9ac894ab0
REORG: mux-h2: extract flags and enums into mux_h2-t.h

Originally in 1.8 we wanted to have an independent mux that could possibly
be disabled and would not impose dependencies on the outside. Everything
would fit into a single C file and that was fine.

Nowadays muxes are unavoidable, and not being able to easily inspect them
from outside is sometimes a bit of a pain. In particular, the flags utility
still cannot be used to decode their flags.

As a first step towards this, this patch moves the flags and enums to
mux_h2-t.h, as well as the two state decoding inline functions. It also
dropped the H2_SS_*_BIT defines that nobody uses. The mux_h2.c file remains
the only one to include that for now.
include/haproxy/mux_h2-t.h [new file with mode: 0644]
src/mux_h2.c