aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/netif/stream.h')
-rw-r--r--include/osmocom/netif/stream.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/osmocom/netif/stream.h b/include/osmocom/netif/stream.h
index 4363a67..21483f2 100644
--- a/include/osmocom/netif/stream.h
+++ b/include/osmocom/netif/stream.h
@@ -17,11 +17,12 @@ void osmo_stream_server_link_close(struct osmo_stream_server_link *link);
struct osmo_stream_server_conn;
-struct osmo_stream_server_conn *osmo_stream_server_conn_create(void *ctx, struct osmo_stream_server_link *link, int fd, int (*cb)(struct osmo_stream_server_conn *conn, struct msgb *msg), int (*closed_cb)(struct osmo_stream_server_conn *conn), void *data);
+struct osmo_stream_server_conn *osmo_stream_server_conn_create(void *ctx, struct osmo_stream_server_link *link, int fd, int (*cb)(struct osmo_stream_server_conn *conn), int (*closed_cb)(struct osmo_stream_server_conn *conn), void *data);
void *osmo_stream_server_conn_get_data(struct osmo_stream_server_conn *conn);
void osmo_stream_server_conn_destroy(struct osmo_stream_server_conn *conn);
void osmo_stream_server_conn_send(struct osmo_stream_server_conn *conn, struct msgb *msg);
+int osmo_stream_server_conn_recv(struct osmo_stream_server_conn *conn, struct msgb *msg);
struct osmo_stream_client_conn;
@@ -30,7 +31,7 @@ void osmo_stream_client_conn_set_port(struct osmo_stream_client_conn *link, uint
void osmo_stream_client_conn_set_data(struct osmo_stream_client_conn *link, void *data);
void *osmo_stream_client_conn_get_data(struct osmo_stream_client_conn *link);
void osmo_stream_client_conn_set_connect_cb(struct osmo_stream_client_conn *link, int (*connect_cb)(struct osmo_stream_client_conn *link));
-void osmo_stream_client_conn_set_read_cb(struct osmo_stream_client_conn *link, int (*read_cb)(struct osmo_stream_client_conn *link, struct msgb *msgb));
+void osmo_stream_client_conn_set_read_cb(struct osmo_stream_client_conn *link, int (*read_cb)(struct osmo_stream_client_conn *link));
struct osmo_stream_client_conn *osmo_stream_client_conn_create(void *ctx);
void osmo_stream_client_conn_destroy(struct osmo_stream_client_conn *link);
@@ -39,5 +40,6 @@ int osmo_stream_client_conn_open(struct osmo_stream_client_conn *link);
void osmo_stream_client_conn_close(struct osmo_stream_client_conn *link);
void osmo_stream_client_conn_send(struct osmo_stream_client_conn *link, struct msgb *msg);
+int osmo_stream_client_conn_recv(struct osmo_stream_client_conn *conn, struct msgb *msg);
#endif