mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
REORG: check: Rename and export I/O callback function
event_srv_chk_io() function is renamed srv_chk_io_cb() to be consistant with the I/O callback function of connections. In addition, this function is exported. It will be required to use the conn-stream's subscriptions.
This commit is contained in:
parent
08c8f8e20d
commit
361417f9b4
@ -74,6 +74,8 @@ void check_notify_stopping(struct check *check);
|
||||
void check_notify_success(struct check *check);
|
||||
struct task *process_chk(struct task *t, void *context, unsigned int state);
|
||||
|
||||
struct task *srv_chk_io_cb(struct task *t, void *ctx, unsigned int state);
|
||||
|
||||
int check_buf_available(void *target);
|
||||
struct buffer *check_get_buf(struct check *check, struct buffer *bptr);
|
||||
void check_release_buf(struct check *check, struct buffer *bptr);
|
||||
|
||||
@ -1068,7 +1068,7 @@ static int wake_srv_chk(struct conn_stream *cs)
|
||||
}
|
||||
|
||||
/* This function checks if any I/O is wanted, and if so, attempts to do so */
|
||||
struct task *event_srv_chk_io(struct task *t, void *ctx, unsigned int state)
|
||||
struct task *srv_chk_io_cb(struct task *t, void *ctx, unsigned int state)
|
||||
{
|
||||
struct check *check = ctx;
|
||||
struct conn_stream *cs = check->cs;
|
||||
@ -1336,7 +1336,7 @@ const char *init_check(struct check *check, int type)
|
||||
if (!check->wait_list.tasklet)
|
||||
return "out of memory while allocating check tasklet";
|
||||
check->wait_list.events = 0;
|
||||
check->wait_list.tasklet->process = event_srv_chk_io;
|
||||
check->wait_list.tasklet->process = srv_chk_io_cb;
|
||||
check->wait_list.tasklet->context = check;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user