mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-08 08:07:10 +02:00
MINOR: acl: export acl arrays
The map feature needs to use the acl parser and converters.
This commit is contained in:
parent
d559dd8390
commit
319e495a96
@ -231,6 +231,9 @@ struct acl_cond {
|
|||||||
int line; /* line in the config file where the condition is declared */
|
int line; /* line in the config file where the condition is declared */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern char *acl_match_names[ACL_MATCH_NUM];
|
||||||
|
extern int (*acl_parse_fcts[ACL_MATCH_NUM])(const char **, struct acl_pattern *, int *, char **);
|
||||||
|
extern int (*acl_match_fcts[ACL_MATCH_NUM])(struct sample *, struct acl_pattern *);
|
||||||
|
|
||||||
#endif /* _TYPES_ACL_H */
|
#endif /* _TYPES_ACL_H */
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ static struct acl_kw_list acl_keywords = {
|
|||||||
.list = LIST_HEAD_INIT(acl_keywords.list)
|
.list = LIST_HEAD_INIT(acl_keywords.list)
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *acl_match_names[ACL_MATCH_NUM] = {
|
char *acl_match_names[ACL_MATCH_NUM] = {
|
||||||
[ACL_MATCH_FOUND] = "found",
|
[ACL_MATCH_FOUND] = "found",
|
||||||
[ACL_MATCH_BOOL] = "bool",
|
[ACL_MATCH_BOOL] = "bool",
|
||||||
[ACL_MATCH_INT] = "int",
|
[ACL_MATCH_INT] = "int",
|
||||||
@ -53,7 +53,7 @@ static char *acl_match_names[ACL_MATCH_NUM] = {
|
|||||||
[ACL_MATCH_REG] = "reg",
|
[ACL_MATCH_REG] = "reg",
|
||||||
};
|
};
|
||||||
|
|
||||||
static int (*acl_parse_fcts[ACL_MATCH_NUM])(const char **, struct acl_pattern *, int *, char **) = {
|
int (*acl_parse_fcts[ACL_MATCH_NUM])(const char **, struct acl_pattern *, int *, char **) = {
|
||||||
[ACL_MATCH_FOUND] = acl_parse_nothing,
|
[ACL_MATCH_FOUND] = acl_parse_nothing,
|
||||||
[ACL_MATCH_BOOL] = acl_parse_nothing,
|
[ACL_MATCH_BOOL] = acl_parse_nothing,
|
||||||
[ACL_MATCH_INT] = acl_parse_int,
|
[ACL_MATCH_INT] = acl_parse_int,
|
||||||
@ -69,7 +69,7 @@ static int (*acl_parse_fcts[ACL_MATCH_NUM])(const char **, struct acl_pattern *,
|
|||||||
[ACL_MATCH_REG] = acl_parse_reg,
|
[ACL_MATCH_REG] = acl_parse_reg,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int (*acl_match_fcts[ACL_MATCH_NUM])(struct sample *, struct acl_pattern *) = {
|
int (*acl_match_fcts[ACL_MATCH_NUM])(struct sample *, struct acl_pattern *) = {
|
||||||
[ACL_MATCH_FOUND] = NULL,
|
[ACL_MATCH_FOUND] = NULL,
|
||||||
[ACL_MATCH_BOOL] = acl_match_nothing,
|
[ACL_MATCH_BOOL] = acl_match_nothing,
|
||||||
[ACL_MATCH_INT] = acl_match_int,
|
[ACL_MATCH_INT] = acl_match_int,
|
||||||
|
Loading…
Reference in New Issue
Block a user