]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: add helper to get status string
authorWilliam Dauchy <wdauchy@gmail.com>
Sun, 14 Feb 2021 22:22:55 +0000 (23:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Feb 2021 13:13:32 +0000 (14:13 +0100)
commit3679d0c794961a99162afde80dac1d229173cca3
treed642611343f5ebb284ce3c4cdc302a7523800811
parent655e14ef17cda6fd282a0c5578fe3d0841b00c13
MINOR: stats: add helper to get status string

move listen status to a helper, defining both status enum and string
definition.
this will be helpful to be reused in prometheus code. It also removes
this hard-to-read nested ternary.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
include/haproxy/listener-t.h
include/haproxy/listener.h
src/listener.c
src/stats.c