CLEANUP: stats/cli: take the "show stat" context definition out of the appctx
authorWilly Tarreau <w@1wt.eu>
Tue, 3 May 2022 15:08:29 +0000 (17:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit91cefcaba422cabc44d3aa831ee2c8c2ac3c9029
tree4453d54bbe7c32a433126a7b793b3d5805d5a28d
parentde58d245d69bee59a8bc5ddf7934114cefaf09f8
CLEANUP: stats/cli: take the "show stat" context definition out of the appctx

This makes use of the generic command context allocation so that the
appctx doesn't have to declare a specific one anymore. The context is
created during parsing (both in the CLI and HTTP).

The change looks large but it's particularly mechanical. The context
initialization appears in stats.c and http_ana.c. The context is used
in stats.c and resolvers.c since "show stat resolvers" points there.
That's the reason why the definition moved to stats.h. "show info"
and "show stat" continue to share the same state definition for now.

Nothing else was modified.
include/haproxy/applet-t.h
include/haproxy/stats-t.h
src/http_ana.c
src/resolvers.c
src/stats.c