MINOR: acl: export find_acl_default()
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Nov 2024 14:15:54 +0000 (15:15 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 9 Jan 2025 09:28:04 +0000 (10:28 +0100)
It will be needed in a future patch, so let's export it (it was static).

(cherry picked from commit 00fcda1ff28c7826d230a4dd3b235b5be19cac07)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

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

index 38b1739..b63b4fe 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 c1f4edd..e607c9b 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;