]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: add cli_msg(), cli_err(), cli_dynmsg(), cli_dynerr()
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Aug 2019 17:09:21 +0000 (19:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Aug 2019 08:11:38 +0000 (10:11 +0200)
commitedb91ad647988f6ac6b7fb9e749597072c5d5e8d
treed04a0e9cbc452d6513359ca40036a179075cb7d7
parentd50c7feaa16acf40f66e865e7a836d74bd1d345c
MINOR: cli: add cli_msg(), cli_err(), cli_dynmsg(), cli_dynerr()

These functions perform all the boring filling of the appctx's
cli struct needed by CLI parsers to return a message or an error,
and they return 1 so that they can be used as a single-line return
statement. They may be used for const messages or dynamic messages.
include/proto/cli.h