From: Christopher Faulet Date: Mon, 18 Sep 2017 13:12:39 +0000 (+0200) Subject: MINOR: action: Add a function pointer in act_rule struct to check its validity X-Git-Tag: v1.8-rc1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d950b92cdf59b5d897b545fab347ec472c39db4;p=thirdparty%2Fhaproxy.git MINOR: action: Add a function pointer in act_rule struct to check its validity It is possible to define the field "act_rule.check_ptr" if you want to check the validity of a tcp/http rule. --- diff --git a/include/types/action.h b/include/types/action.h index 1c1715492d..04a9f18b0c 100644 --- a/include/types/action.h +++ b/include/types/action.h @@ -102,6 +102,7 @@ struct act_rule { short deny_status; /* HTTP status to return to user when denying */ enum act_return (*action_ptr)(struct act_rule *rule, struct proxy *px, /* ptr to custom action */ struct session *sess, struct stream *s, int flags); + int (*check_ptr)(struct act_rule *rule, struct proxy *px, char **err); /* ptr to check function */ struct action_kw *kw; struct applet applet; /* used for the applet registration. */ union {