CLEANUP: proxy/cli: make use of a locally defined context for "show servers"
authorWilly Tarreau <w@1wt.eu>
Thu, 5 May 2022 15:00:20 +0000 (17:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:36 +0000 (18:13 +0200)
commit72a04238d5db04de9a9900756cedb7c9c5bf09d4
tree9f02d9dbcdd69d4cfcf5cb29d17b74ee8d403a55
parentc6dfef7a0b295261a3aaa943bf7bcab45cb3c43c
CLEANUP: proxy/cli: make use of a locally defined context for "show servers"

The command uses a pointer to the current proxy being dumped, one to the
current server being dumped, an optional ID of the only proxy to dump
(which is in fact used as a boolean), and a flag indicating if we're
doing a "show servers conn" or a "show servers state". Let's move all
this to a struct show_srv_ctx.
src/proxy.c