BUILD: applet: mark the CLI's generic variables as deprecated
authorWilly Tarreau <w@1wt.eu>
Thu, 5 May 2022 17:43:49 +0000 (19:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:36 +0000 (18:13 +0200)
commitf50da2c32017a59ef40f96fdcb50f8a9e8d8be44
treed7479fb3f8ae0a90cc50ebf7460cac802f95afef
parent23a2407843f82ee067f3f9d7b93da52cbf4603b9
BUILD: applet: mark the CLI's generic variables as deprecated

The generic context variables p0/p1/p2, i0/i1, o0/o1 have been abused
and causing trouble for too long, it's time to remove them now that
they are not used anymore.

However the risk that external code still uses them is not nul and we
had not warned before about their removal. Let's mark them deprecated
in 2.6 and removed in 2.7. This will let external code continue to work
(as well as it could if it misuses them), with a strong encouragement
on updating it.

If you found this commit after a bisect session you initiated to figure
why you got some build warnings and don't know what to do, have a look
at the code that deals with the "show fd", "show env" or "show servers"
commands, as it's supposed to be self-explanatory about the tiny changes
to apply to your code to port it. If you find APPLET_MAX_SVCCTX to be
too small for your use case, either kindly ask for a tiny extension
(and try to get your code merged), or just use a pool.
include/haproxy/applet-t.h