From: Amaury Denoyelle Date: Thu, 10 Dec 2020 12:43:57 +0000 (+0100) Subject: MINOR: stream: add sample fetches X-Git-Tag: v2.4-dev3~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12bada5662f41b3ae6c8d442905cbc57bdb9b9b3;p=thirdparty%2Fhaproxy.git MINOR: stream: add sample fetches Prepare the possibility to register sample fetches on the stream. This commit is necessary to implement sample fetches to retrieve the current timeout values. --- diff --git a/src/stream.c b/src/stream.c index e43eace13a..187d884097 100644 --- a/src/stream.c +++ b/src/stream.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include @@ -3456,6 +3457,15 @@ static struct action_kw_list stream_http_keywords = { ILH, { INITCALL1(STG_REGISTER, http_req_keywords_register, &stream_http_keywords); +/* Note: must not be declared as its list will be overwritten. + * Please take care of keeping this list alphabetically sorted. + */ +static struct sample_fetch_kw_list smp_kws = {ILH, { + { NULL, NULL, 0, 0, 0 }, +}}; + +INITCALL1(STG_REGISTER, sample_register_fetches, &smp_kws); + /* * Local variables: * c-indent-level: 8