]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acl: export find_acl_default()
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 14:15:54 +0000 (15:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 14:15:54 +0000 (15:15 +0100)
It will be needed in a future patch, so let's export it (it was static).

include/haproxy/acl.h
src/acl.c

index 38b173985a181f43053eee5e0b200cb46b99a7ea..b63b4fe8416e315477195d8a6588ab7830e855ce 100644 (file)
@@ -50,6 +50,9 @@ static inline int acl_pass(enum acl_test_res res)
  * NULL if not found.
  */
 struct acl *find_acl_by_name(const char *name, struct list *head);
+struct acl *find_acl_default(const char *acl_name, struct list *known_acl,
+                             char **err, struct arg_list *al,
+                             const char *file, int line);
 
 /* Return a pointer to the ACL keyword <kw> within the list starting at <head>,
  * or NULL if not found. Note that if <kw> contains an opening parenthesis,
index c1f4edd1c7532cd2811e42064aa5f9b84b065caf..e607c9b7611314931f99a826e135534b7cd220da 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -757,9 +757,9 @@ const struct {
  * to report missing dependencies. It may be NULL if such dependencies are not
  * allowed.
  */
-static struct acl *find_acl_default(const char *acl_name, struct list *known_acl,
-                                    char **err, struct arg_list *al,
-                                    const char *file, int line)
+struct acl *find_acl_default(const char *acl_name, struct list *known_acl,
+                             char **err, struct arg_list *al,
+                             const char *file, int line)
 {
        __label__ out_return, out_free_acl_expr, out_free_name;
        struct acl *cur_acl;