]> git.kaiwu.me - haproxy.git/commit
MINOR: hbuf: new lightweight hbuf API
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 2 Mar 2026 09:25:17 +0000 (10:25 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 1 Jul 2026 13:22:14 +0000 (15:22 +0200)
commit01f4e33eadc79b4780b62694c93f0b3e217a0a0d
tree7f16c35e493a05f0a2709a74d0cffa5a794627b7
parentf59da779ca7d28c842898a3ecbc907939613f049
MINOR: hbuf: new lightweight hbuf API

Add a new lightweight hbuf API to buffer formatted strings, similar to the
existing buffer API (struct buffer), extracting the code which already does this
in haterm_init.c. This is used by haterm to build its configuration in memory
(fileless mode). And this will be used by haload to do the same thing.

Update haterm to use this new API.

Note: hstream_str_buf_append() has been renamed to hbuf_str_append().
Makefile
include/haproxy/hbuf.h [new file with mode: 0644]
src/haterm_init.c
src/hbuf.c [new file with mode: 0644]