commit | fcf94981e485aa17ccc8b3371e0a4cb9724bda8b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Nov 15 15:07:21 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Nov 15 15:48:12 2019 +0100 |
tree | bd2e91456608b2454384ba7b259a6aaee6551c01 | |
parent | a63a5c2c65896ed480220e43b1bae993cef9596d [diff] |
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().