diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-10-17 12:50:58 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-10-17 12:51:18 +0200 |
commit | 98ec00d8d22fa855710a13aa21cfe1f66114a55b (patch) | |
tree | 29b937eff0b85144385df2e128f3ec5b99f24dde /include | |
parent | c43bb089067ca05af4992fbafe46827a1f0a6e9b (diff) |
stream: add osmo_stream_*_conn_recv
Like c43bb089067ca05af4992fbafe46827a1f0a6e9b but for stream
sockets.
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/netif/stream.h | 6 |
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 |