]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: Add API functions to get data from the input buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Jun 2025 13:28:45 +0000 (15:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Jun 2025 06:16:10 +0000 (08:16 +0200)
commit79445766a327a1f62d2403974596b1da9823e851
tree5b0f5cf4bedeb1bbe422903664351ecaf50216be
parent0d8ecb1edcaf128202c687dd7de7a74166ecbbdf
MINOR: applet: Add API functions to get data from the input buffer

There was already functions to pushed data from the applet to the stream by
inserting them in the right buffer, depending the applet was using or not
the legacy API. Here, functions to retreive data pushed to the applet by the
stream were added:

  * applet_getchar   : Gets one character

  * applet_getblk    : Copies a full block of data

  * applet_getword   : Copies one text block representing a word using a
                       custom separator as delimiter

  * applet_getline   : Copies one text line

  * applet_getblk_nc : Get one or two blocks of data

  * applet_getword_nc: Gets one or two blocks of text representing a word
                       using a custom separator as delimiter

  * applet_getline_nc: Gets one or two blocks of text representing a line
include/haproxy/applet.h