]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: adopt the wait list entry from the CLI
authorWilly Tarreau <w@1wt.eu>
Tue, 19 May 2020 15:07:30 +0000 (17:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 May 2020 17:37:12 +0000 (19:37 +0200)
commit9597cbd17a984852395ce7337ca245b7f9c84ac1
treec7bba4727f011bd7b642b9adebd419ae907141b6
parent223ddedb467494d78ebf67e0ac19206f767ffe6a
MINOR: applet: adopt the wait list entry from the CLI

A few fields, including a generic list entry, were added to the CLI context
by commit 300decc8d9 ("MINOR: cli: extend the CLI context with a list and
two offsets"). It turns out that the list entry (l0) is solely used to
consult rings and that the generic ring_write() code is restricted to a
consumer on the CLI due to this, which was not the initial intent. Let's
make it a general purpose wait_entry field that is properly initialized
during appctx_init(). This will allow any applet to wait on a ring, not
just the CLI.
include/proto/applet.h
include/types/applet.h
src/cli.c
src/ring.c