From: Aurelien DARRAGON Date: Thu, 29 Dec 2022 17:32:19 +0000 (+0100) Subject: MINOR: http_ext: introduce http ext converters X-Git-Tag: v2.8-dev3~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82faad1069e86c5e25b12ffa214b2c2d1f88c305;p=thirdparty%2Fhaproxy.git MINOR: http_ext: introduce http ext converters This commit is really simple, it adds the required skeleton code to allow new http_ext converter to be easily registered through STG_REGISTER facility. --- diff --git a/src/http_ext.c b/src/http_ext.c index 6a922e6f57..1c621a66a7 100644 --- a/src/http_ext.c +++ b/src/http_ext.c @@ -21,6 +21,8 @@ #include #include #include +#include +#include #include /* check if char is a valid obfuscated identifier char @@ -1362,3 +1364,15 @@ void http_ext_xot_copy(struct http_ext_xot *dest, const struct http_ext_xot *ori dest->hdr_name = istdup(orig->hdr_name); dest->except_net = orig->except_net; } + +/* + * =========== CONV =========== + * related converters + */ + +/* Note: must not be declared as its list will be overwritten */ +static struct sample_conv_kw_list sample_conv_kws = {ILH, { + { NULL, NULL, 0, 0, 0 }, +}}; + +INITCALL1(STG_REGISTER, sample_register_convs, &sample_conv_kws);