]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: applet: group all CLI contexts together
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Dec 2016 11:14:12 +0000 (12:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Dec 2016 18:40:13 +0000 (19:40 +0100)
commitebec3519b00eac6eb38558933db226af1d27e1ad
tree67a0a8fdaa165d2218bc9a0e18a823e7803020a8
parente9ecec8935da4c003f786381b7bba0a6b91f861b
CLEANUP: applet: group all CLI contexts together

The appctx storage became a real mess along the years. It now contains
mostly CLI-specific parts that share the same storage as the "cli" part
which in fact only contains the fields needed to pass an error message
to the caller, and it also has room a few other regular applets which
may become more and more common.

This first patch moves the parts around in the union so that all
standard applet parts are grouped together and the CLI-specific ones
are grouped together. It also adds a few comments to indicate what
certain parts are used for since it's sometimes a bit confusing.
include/types/applet.h