mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
MINOR: stream_interface: add an init callback to sock_ops
This will be needed for some socket layers such as SSL. It's not used at the moment.
This commit is contained in:
parent
f873d754f8
commit
64798bd720
@ -106,6 +106,7 @@ struct target {
|
||||
};
|
||||
|
||||
struct sock_ops {
|
||||
int (*init)(struct stream_interface *, void *); /* init function */
|
||||
void (*update)(struct stream_interface *); /* I/O update function */
|
||||
void (*shutr)(struct stream_interface *); /* shutr function */
|
||||
void (*shutw)(struct stream_interface *); /* shutw function */
|
||||
|
@ -1151,6 +1151,7 @@ static void sock_raw_chk_snd(struct stream_interface *si)
|
||||
|
||||
/* stream sock operations */
|
||||
struct sock_ops sock_raw = {
|
||||
.init = NULL,
|
||||
.update = sock_raw_data_finish,
|
||||
.shutr = sock_raw_shutr,
|
||||
.shutw = sock_raw_shutw,
|
||||
|
@ -42,6 +42,7 @@ static void stream_int_chk_snd(struct stream_interface *si);
|
||||
|
||||
/* socket operations for embedded tasks */
|
||||
struct sock_ops stream_int_embedded = {
|
||||
.init = NULL,
|
||||
.update = stream_int_update_embedded,
|
||||
.shutr = stream_int_shutr,
|
||||
.shutw = stream_int_shutw,
|
||||
@ -53,6 +54,7 @@ struct sock_ops stream_int_embedded = {
|
||||
|
||||
/* socket operations for external tasks */
|
||||
struct sock_ops stream_int_task = {
|
||||
.init = NULL,
|
||||
.update = stream_int_update,
|
||||
.shutr = stream_int_shutr,
|
||||
.shutw = stream_int_shutw,
|
||||
|
Loading…
x
Reference in New Issue
Block a user