]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: applet: Simplify a bit API to exchange data with applets
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Jan 2024 14:41:46 +0000 (15:41 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Feb 2024 14:04:52 +0000 (15:04 +0100)
commitee53d8421f03bdbf7be44843fdaee693dfd0d3ec
treeaeb1142fe1aa504583832bee538bb2b8fc3a8386
parent868205943c7fa0c99d75cc170db9e02719f5d620
MEDIUM: applet: Simplify a bit API to exchange data with applets

Default .rcv_buf and .snd_buf functions that applets can use are now
specialized to manipulate raw buffers or HTX buffers.

Thus a TCP applet should use appctx_raw_rcv_buf() and appctx_raw_snd_buf()
while HTTP applet should use appctx_htx_rcv_buf() and appctx_htx_snd_buf().

Note that the appctx is now directly passed to these functions instead of
the SC.
include/haproxy/applet-t.h
include/haproxy/applet.h
src/applet.c
src/cache.c
src/stats.c
src/stconn.c