mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
MINOR: check: export check init functions
Remove static qualifier on init_srv_check, init_srv_agent_check and start_check_task. These functions will be called in server.c for dynamic servers with checks.
This commit is contained in:
parent
f2c27a5c67
commit
3c2ab1a0d4
2 changed files with 7 additions and 3 deletions
|
|
@ -80,6 +80,10 @@ 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);
|
||||
|
||||
int init_srv_check(struct server *srv);
|
||||
int init_srv_agent_check(struct server *srv);
|
||||
int start_check_task(struct check *check, int mininter, int nbcheck, int srvpos);
|
||||
|
||||
/* Declared here, but the definitions are in flt_spoe.c */
|
||||
int spoe_prepare_healthcheck_request(char **req, int *len);
|
||||
int spoe_handle_healthcheck_response(char *frame, size_t size, char *err, int errlen);
|
||||
|
|
|
|||
|
|
@ -1343,7 +1343,7 @@ struct task *process_chk(struct task *t, void *context, unsigned int state)
|
|||
}
|
||||
|
||||
|
||||
static int start_check_task(struct check *check, int mininter,
|
||||
int start_check_task(struct check *check, int mininter,
|
||||
int nbcheck, int srvpos)
|
||||
{
|
||||
struct task *t;
|
||||
|
|
@ -1554,7 +1554,7 @@ static int srv_check_healthcheck_port(struct check *chk)
|
|||
/* Initializes an health-check attached to the server <srv>. Non-zero is returned
|
||||
* if an error occurred.
|
||||
*/
|
||||
static int init_srv_check(struct server *srv)
|
||||
int init_srv_check(struct server *srv)
|
||||
{
|
||||
const char *err;
|
||||
struct tcpcheck_rule *r;
|
||||
|
|
@ -1656,7 +1656,7 @@ static int init_srv_check(struct server *srv)
|
|||
/* Initializes an agent-check attached to the server <srv>. Non-zero is returned
|
||||
* if an error occurred.
|
||||
*/
|
||||
static int init_srv_agent_check(struct server *srv)
|
||||
int init_srv_agent_check(struct server *srv)
|
||||
{
|
||||
struct tcpcheck_rule *chk;
|
||||
const char *err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue