diff options
author | Max <msuraev@sysmocom.de> | 2019-02-20 17:12:34 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2019-02-20 17:33:32 +0100 |
commit | af63d87a76ef4ae010e230d86ce9c07c6081cb80 (patch) | |
tree | fa0106633f0016b0b9b5fb5644d729f6e1fd2492 /include | |
parent | fe3527da2ac691c961f767c97d70bfe00d1e4d10 (diff) |
Stream client: add disconnect callback
It's similar to connect_cb() but called once client has been
disconnected.
Change-Id: I905adb2d6191216551a3bcdcd1aec1f96f01612a
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/netif/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/netif/stream.h b/include/osmocom/netif/stream.h index 3044511..56162e4 100644 --- a/include/osmocom/netif/stream.h +++ b/include/osmocom/netif/stream.h @@ -64,6 +64,7 @@ void *osmo_stream_cli_get_data(struct osmo_stream_cli *cli); char *osmo_stream_cli_get_sockname(const struct osmo_stream_cli *cli); struct osmo_fd *osmo_stream_cli_get_ofd(struct osmo_stream_cli *cli); void osmo_stream_cli_set_connect_cb(struct osmo_stream_cli *cli, int (*connect_cb)(struct osmo_stream_cli *cli)); +void osmo_stream_cli_set_disconnect_cb(struct osmo_stream_cli *cli, int (*disconnect_cb)(struct osmo_stream_cli *cli)); void osmo_stream_cli_set_read_cb(struct osmo_stream_cli *cli, int (*read_cb)(struct osmo_stream_cli *cli)); void osmo_stream_cli_reconnect(struct osmo_stream_cli *cli); |