mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-23 13:17:16 +00:00
1c0715b12a
Now that the CLI's print context is alone in the appctx, it's possible to refine the appctx's ctx layout so that the cli part matches exactly a regular svcctx, and as such move the CLI context into an svcctx like other applets. External code will still build and work because the struct cli perfectly maps onto the struct cli_print_ctx that's located into svc.storage. This is of course only to make a smooth transition during 2.6 and will disappear immediately after. A tiny change had to be applied to the opentracing addon which performs direct accesses to the CLI's err pointer in its own print function. The rest uses the standard cli_print_* which were the only ones that needed a small change. The whole "ctx.cli" struct could be tagged as deprecated so that any possibly existing external code that relies on it will get build warnings, and the comments in the struct are pretty clear about the way to fix it, and the lack of future of this old API. |
||
---|---|---|
.. | ||
haproxy | ||
import |