aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-10-21 03:08:37 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2012-10-21 03:08:37 +0200
commit4aa540ae27249681c11997acd1a82370f11d8c27 (patch)
tree53d4076aafa4d77386dccf1d28183f0c12fc60f3 /src
parent5654c43f80a48b99bdbd5179d87f9b1a5cf55fa4 (diff)
dgram: add osmo_dgram_get_data
Diffstat (limited to 'src')
-rw-r--r--src/datagram.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/datagram.c b/src/datagram.c
index 5630114..6a28ff5 100644
--- a/src/datagram.c
+++ b/src/datagram.c
@@ -365,6 +365,11 @@ void osmo_dgram_set_data(struct osmo_dgram *conn, void *data)
conn->data = data;
}
+void *osmo_dgram_get_data(struct osmo_dgram *conn)
+{
+ return conn->data;
+}
+
int osmo_dgram_open(struct osmo_dgram *conn)
{
int ret;