]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: action: add private configuration
authorThierry FOURNIER <tfournier@arpalert.org>
Tue, 22 Sep 2015 16:26:42 +0000 (18:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Sep 2015 19:44:23 +0000 (21:44 +0200)
This private configuration pointer is used for storing some configuration
data associated the keyword, So many keywords can use the same parse
function, and this one can use a discriminator.

include/types/action.h

index 2461f79829f16d7d007957a22755e0f5477f4b2c..d74e5ba30b3c50e64f84aaa27226c76c21ead118 100644 (file)
@@ -154,6 +154,7 @@ struct action_kw {
        enum act_parse_ret (*parse)(const char **args, int *cur_arg, struct proxy *px,
                                    struct act_rule *rule, char **err);
        int match_pfx;
+       void *private;
 };
 
 struct action_kw_list {