mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-05 00:59:16 -04:00
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.
This commit is contained in:
parent
f958341610
commit
82faad1069
1 changed files with 14 additions and 0 deletions
|
|
@ -21,6 +21,8 @@
|
|||
#include <haproxy/sc_strm.h>
|
||||
#include <haproxy/obj_type.h>
|
||||
#include <haproxy/cfgparse.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <haproxy/initcall.h>
|
||||
#include <haproxy/tools.h>
|
||||
|
||||
/* 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 <const> 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue