summaryrefslogtreecommitdiffstats
path: root/src/host/virt_phy/include/virtphy/l1ctl_sock.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-19 13:53:30 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-19 13:53:30 +0200
commitf122d4cd364a6ba0c3d73ff017c3cc598ebf10f1 (patch)
tree69f0059dfb82f276508caecaa01b842a3536d69d /src/host/virt_phy/include/virtphy/l1ctl_sock.h
parentc0fba7a298fc8c7fada32b24f71aa27e0ec90cd6 (diff)
VIRT-PHY: Properly destroy l1_model_ms after disconnect
If a MS disconnects, we need to clean up all related state Change-Id: Ib7adef61150b5a4338483019e4dd75d7279d1f5d
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);
/**