CLEANUP: map/cli: take the "show map" context definition out of the appctx
authorWilly Tarreau <w@1wt.eu>
Tue, 3 May 2022 09:54:47 +0000 (11:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit0fcecc63c8d6d156f68428b45a1741e9ce35be59
treeeb6826da9c0952c0b687bc9a4dced19c1d9231b5
parent0f154ed1ef7e244860eba1c46b4238e877119bee
CLEANUP: map/cli: take the "show map" 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. Many commands, including pure parsers, use this
context but that's not a problem as it's designed to be used this way.
Due to this, many lines are changed but that's in fact a replacement of
"appctx->ctx.map" with "ctx->". Note that the code also uses st2 which
deserves being addressed in separate commit.
include/haproxy/applet-t.h
src/map.c