]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tcpcheck: export proxy_parse_tcpcheck()
authorDragan Dosen <ddosen@haproxy.com>
Wed, 27 Dec 2023 13:35:58 +0000 (14:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Jan 2024 10:44:42 +0000 (11:44 +0100)
Export proxy_parse_tcpcheck() in tcpcheck.h

include/haproxy/tcpcheck.h
src/tcpcheck.c

index 3abd1ef07477f239b3b15b76990eb04076a4c7dd..55c564a20c2dc9702455f35a83dac2ffb1fcd9da 100644 (file)
@@ -83,6 +83,10 @@ struct tcpcheck_rule *parse_tcpcheck_expect(char **args, int cur_arg, struct pro
                                             struct list *rules, unsigned int proto,
                                             const char *file, int line, char **errmsg);
 
+int proxy_parse_tcpcheck(char **args, int section, struct proxy *curpx,
+                         const struct proxy *defpx, const char *file, int line,
+                         char **errmsg);
+
 int proxy_parse_tcp_check_opt(char **args, int cur_arg, struct proxy *curpx, const struct proxy *defpx,
                              const char *file, int line);
 int proxy_parse_redis_check_opt(char **args, int cur_arg, struct proxy *curpx, const struct proxy *defpx,
index d30ecb57ec12656364c13992208b3dbb33b464cb..050015d1f59161fbbeffc0704ce4d6933ba73564 100644 (file)
@@ -3877,9 +3877,9 @@ int add_tcpcheck_send_strs(struct tcpcheck_rules *rules, const char * const *str
 }
 
 /* Parses the "tcp-check" proxy keyword */
-static int proxy_parse_tcpcheck(char **args, int section, struct proxy *curpx,
-                               const struct proxy *defpx, const char *file, int line,
-                               char **errmsg)
+int proxy_parse_tcpcheck(char **args, int section, struct proxy *curpx,
+                         const struct proxy *defpx, const char *file, int line,
+                         char **errmsg)
 {
        struct tcpcheck_ruleset *rs = NULL;
        struct tcpcheck_rule *chk = NULL;