From 5abf7f2ea492fced6824092e1ee471c40b714bde Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 19 Aug 2012 18:35:10 +0200 Subject: stream: add osmo_stream_srv_get_master To obtain the information of the server data that this connection belongs to. --- src/stream.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/stream.c') diff --git a/src/stream.c b/src/stream.c index c72de3c..a455d84 100644 --- a/src/stream.c +++ b/src/stream.c @@ -523,6 +523,11 @@ osmo_stream_srv_get_ofd(struct osmo_stream_srv *link) return &link->ofd; } +struct osmo_stream_srv_link *osmo_stream_srv_get_master(struct osmo_stream_srv *conn) +{ + return conn->srv; +} + void osmo_stream_srv_destroy(struct osmo_stream_srv *conn) { close(conn->ofd.fd); -- cgit v1.2.3