]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: Implement default functions to exchange data with channels
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 Jan 2024 08:58:46 +0000 (09:58 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Feb 2024 14:03:18 +0000 (15:03 +0100)
commit525ec123055965f3ef08230c6b9008ac715e2fa0
tree2c2ed0a2084a69c13f84a19d33dc801c31addbf2
parent361b81bfcadc2668756f3b798dc20e30b227d1ca
MINOR: applet: Implement default functions to exchange data with channels

In this patch, we add default functions to copy data from a channel to the
<inbuf> buffer of an applet (appctx_rcv_buf) and another on to copy data
from <outbuf> buffer of an applet to a channel (appctx_snd_buf).

These functions are not used for now, but they will be used by applets to
define their <rcv_buf> and <snd_buf> callback functions. Of course, it will
be possible for a specific applet to implement its own functions but these
ones should be good enough for most of applets. HTX and RAW buffers are
supported.
include/haproxy/applet.h
src/applet.c