]> git.kaiwu.me - haproxy.git/commit
MINOR: lb: infrastructure for declarative initialization
authorMaxime Henrion <mhenrion@haproxy.com>
Mon, 27 Apr 2026 18:26:18 +0000 (14:26 -0400)
committerOlivier Houchard <cognet@ci0.org>
Tue, 28 Apr 2026 13:31:51 +0000 (15:31 +0200)
commit16a4de0d5c58234092c702ab0b12049e2ade9d60
tree0efb980f21d4bf45baceaa20035a74ca45c68cde
parent5ddba59a027cee4f57b8ca3fc88285f43a6194ab
MINOR: lb: infrastructure for declarative initialization

This creates an ops structure for the various callbacks into the LB
algorithms, and defines those ops structure for each algorithm. A new
proxy_init callback is added for the initialization functions called
from proxy_finalize(). Since one of them needs to return an int in case
of an error, we change all the others to also return an int so we have a
uniform type.

No functional changes.
13 files changed:
include/haproxy/backend-t.h
include/haproxy/lb_chash.h
include/haproxy/lb_fas.h
include/haproxy/lb_fwlc.h
include/haproxy/lb_fwrr.h
include/haproxy/lb_map.h
include/haproxy/lb_ss.h
src/lb_chash.c
src/lb_fas.c
src/lb_fwlc.c
src/lb_fwrr.c
src/lb_map.c
src/lb_ss.c