diff options
-rw-r--r-- | include/osmocom/netif/stream.h | 1 | ||||
-rw-r--r-- | src/stream.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/netif/stream.h b/include/osmocom/netif/stream.h index 3981e41..819f1ce 100644 --- a/include/osmocom/netif/stream.h +++ b/include/osmocom/netif/stream.h @@ -44,6 +44,7 @@ void *osmo_stream_cli_get_data(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_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); struct osmo_stream_cli *osmo_stream_cli_create(void *ctx); void osmo_stream_cli_destroy(struct osmo_stream_cli *cli); diff --git a/src/stream.c b/src/stream.c index 2fca7be..f5408f8 100644 --- a/src/stream.c +++ b/src/stream.c @@ -85,7 +85,7 @@ struct osmo_stream_cli { void osmo_stream_cli_close(struct osmo_stream_cli *cli); -static void osmo_stream_cli_reconnect(struct osmo_stream_cli *cli) +void osmo_stream_cli_reconnect(struct osmo_stream_cli *cli) { if (cli->reconnect_timeout < 0) { LOGP(DLINP, LOGL_DEBUG, "not reconnecting, disabled.\n"); |