]> 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>
Thu, 18 Jun 2026 09:25:59 +0000 (11:25 +0200)
commit99c24e957eac0ad168983d218feba33042fac228
tree0ed58c3dbfd6ed03ba0eb1b2570171f71a0b10bc
parent0e0223bd39db91ddaa21a69520f2541b3703851d
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]