]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: automatically enable a CLI I/O handler when there's no parser
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Dec 2016 16:59:25 +0000 (17:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Dec 2016 18:40:13 +0000 (19:40 +0100)
commiteaffde38c8667668b0ffa76694cb78464a5b4f0b
tree1a87d1ab334cb5e81332f6908c62d155d2a2b437
parent511321658317b079eee5c2e380cc904959a53653
MINOR: cli: automatically enable a CLI I/O handler when there's no parser

Sometimes a registered keyword will not need any specific parsing nor
initialization, so it's annoying to have to write an empty parsing
function returning zero just for this.

This patch makes it possible to automatically call a keyword's I/O
handler of when the parsing function is not defined, while still allowing
a parser to set the I/O handler itself.
src/cli.c