]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: check: export wake_srv_chk()
authorWilly Tarreau <w@1wt.eu>
Wed, 18 May 2022 07:11:52 +0000 (09:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 May 2022 17:33:34 +0000 (19:33 +0200)
We'll need it to centralize the stream connectors definitions.

include/haproxy/check.h
src/check.c

index f631c30fc3e97214f599fe3a99adcb422f884a6c..eb899512dac6ebde35a5156fe4de56db667eaf4f 100644 (file)
@@ -82,6 +82,7 @@ void check_release_buf(struct check *check, struct buffer *bptr);
 const char *init_check(struct check *check, int type);
 void free_check(struct check *check);
 void check_purge(struct check *check);
+int wake_srv_chk(struct stconn *cs);
 
 int init_srv_check(struct server *srv);
 int init_srv_agent_check(struct server *srv);
index 5731439c90fb6dd513adeb94e0b547409de3fb10..e93e50bc5f94ddb3fbeb182df71d2ef9aba7e4ac 100644 (file)
@@ -140,7 +140,6 @@ struct trace_source trace_check = {
 INITCALL1(STG_REGISTER, trace_register_source, TRACE_SOURCE);
 
 
-static int wake_srv_chk(struct stconn *cs);
 struct data_cb check_conn_cb = {
        .wake = wake_srv_chk,
        .name = "CHCK",
@@ -1016,7 +1015,7 @@ int httpchk_build_status_header(struct server *s, struct buffer *buf)
  * It returns 0 on normal cases, <0 if at least one close() has happened on the
  * connection (eg: reconnect). It relies on tcpcheck_main().
  */
-static int wake_srv_chk(struct stconn *cs)
+int wake_srv_chk(struct stconn *cs)
 {
        struct connection *conn;
        struct check *check = __cs_check(cs);