MINOR: cli: add a function to look up a CLI service description
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 19:10:08 +0000 (20:10 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 08:21:01 +0000 (09:21 +0100)
commitb2239a79344a24e0e04aaa159020e4681aadf631
tree939e0c5899c5c84944a2c6d6d0458db9efbd054e
parent4b5382db22b39c168131c0d6335b0711dbb0b16d
MINOR: cli: add a function to look up a CLI service description

This function will be useful to check if the keyword is already registered.
Also add a define for the max number of args.

This will be needed by a next patch to fix a bug and will have to be
backported.

(cherry picked from commit a51a1fd17420a96bb766afbae354e041fc9e1d9b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/cli-t.h
include/haproxy/cli.h
src/cli.c