mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-12 15:23:08 -05:00
MINOR: arg: Add an argument type to keep a reference on opaque data
The ARGT_PTR argument type may now be used to keep a reference to opaque data in the argument array used by sample fetches and converters. It is a generic way to point on data. I guess it could be used for some other arguments, like proxy, server, map or stick-table.
This commit is contained in:
parent
0eb967d122
commit
e02fc4d0dd
1 changed files with 2 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ enum {
|
|||
ARGT_REG, /* a pointer to a regex */
|
||||
ARGT_VAR, /* contains a variable description. */
|
||||
ARGT_PBUF_FNUM, /* a protocol buffer field number */
|
||||
ARGT_PTR, /* a pointer to opaque data */
|
||||
/* please update arg_type_names[] in args.c if you add entries here */
|
||||
};
|
||||
|
||||
|
|
@ -106,6 +107,7 @@ union arg_data {
|
|||
struct my_regex *reg;
|
||||
struct pbuf_fid fid;
|
||||
struct var_desc var;
|
||||
void *ptr;
|
||||
};
|
||||
|
||||
struct arg {
|
||||
|
|
|
|||
Loading…
Reference in a new issue