]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: Make .init callback more generic
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 13 Jan 2022 15:01:35 +0000 (16:01 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Apr 2022 13:10:13 +0000 (15:10 +0200)
commit4aa1d2838ca8c58eba0b870e2f586896a544051b
treeaa6fe51d91b2caf2f13f666b9abde84ec1924ddb
parent91449b0351d54345420d2fbffb0af0a641417473
MINOR: applet: Make .init callback more generic

For now there is no much change. Only the appctx is passed as argument when
the .init callback function is called. And it is not possible to yield at
this stage. It is not a problem because the feature is not used. Only the
lua defines this callback function for the lua TCP/HTTP services. The idea
is to be able to use it for all applets to initialize the appctx context.
addons/promex/service-prometheus.c
include/haproxy/applet-t.h
src/hlua.c
src/stream.c