]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ring: make the parse function automatically set the handler/release
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2019 14:07:21 +0000 (15:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2019 14:48:12 +0000 (15:48 +0100)
commitfcf94981e485aa17ccc8b3371e0a4cb9724bda8b
treebd2e91456608b2454384ba7b259a6aaee6551c01
parenta63a5c2c65896ed480220e43b1bae993cef9596d
MINOR: ring: make the parse function automatically set the handler/release

ring_attach_cli() is called by the keyword parsing function to dump a
ring to the CLI. It can only work with a specific handler and release
function. Let's make it set them appropriately instead of having the
caller know these functions. This way adding a command to dump a ring
is as simple as declaring a parsing function calling ring_attach_cli().
src/ring.c
src/sink.c