summaryrefslogtreecommitdiffstats
path: root/src/host/virt_phy/include/virtphy/l1ctl_sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/virt_phy/include/virtphy/l1ctl_sock.h')
-rw-r--r--src/host/virt_phy/include/virtphy/l1ctl_sock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/virt_phy/include/virtphy/l1ctl_sock.h b/src/host/virt_phy/include/virtphy/l1ctl_sock.h
index 82ee5caf..2c98fa58 100644
--- a/src/host/virt_phy/include/virtphy/l1ctl_sock.h
+++ b/src/host/virt_phy/include/virtphy/l1ctl_sock.h
@@ -28,6 +28,8 @@ struct l1ctl_sock_inst {
void (*recv_cb)(struct l1ctl_sock_client *lsc, struct msgb *msg); /* Callback function called for incoming data from l2 app. */
/* Callback function called for new client after accept() */
int (*accept_cb)(struct l1ctl_sock_client *lsc);
+ /* Callback function called when client disappeared */
+ void (*close_cb)(struct l1ctl_sock_client *lsc);
};
/**
@@ -37,6 +39,7 @@ struct l1ctl_sock_inst *l1ctl_sock_init(
void *ctx,
void (*recv_cb)(struct l1ctl_sock_client *lsc, struct msgb *msg),
int (*accept_cb)(struct l1ctl_sock_client *lsc),
+ void (*close_cb)(struct l1ctl_sock_client *lsc),
char *path);
/**