pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/29569 )


Change subject: osmux: Introduce API osmux_xfrm_input_get_deliver_cb_data()
......................................................................

osmux: Introduce API osmux_xfrm_input_get_deliver_cb_data()

This API allows retrieving back the private pointer set previously by
osmux_xfrm_input_set_deliver_cb().

Change-Id: I95433b18802f73fa70e758f4aa02128eee940d88
---
M include/osmocom/netif/osmux.h
M src/osmux_input.c
2 files changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/69/29569/1

diff --git a/include/osmocom/netif/osmux.h b/include/osmocom/netif/osmux.h
index e02c5cd..f7a5fd5 100644
--- a/include/osmocom/netif/osmux.h
+++ b/include/osmocom/netif/osmux.h
@@ -110,6 +110,7 @@
 void osmux_xfrm_input_set_batch_size(struct osmux_in_handle *h, uint16_t 
batch_size);
 void osmux_xfrm_input_set_initial_seqnum(struct osmux_in_handle *h, uint8_t 
osmux_seqnum);
 void osmux_xfrm_input_set_deliver_cb(struct osmux_in_handle *h, void 
(*deliver_cb)(struct msgb *msg, void *data), void *data);
+void *osmux_xfrm_input_get_deliver_cb_data(struct osmux_in_handle *h);

 int osmux_xfrm_input_open_circuit(struct osmux_in_handle *h, int ccid, int 
dummy);
 void osmux_xfrm_input_close_circuit(struct osmux_in_handle *h, int ccid);
diff --git a/src/osmux_input.c b/src/osmux_input.c
index f177ea9..2c18b20 100644
--- a/src/osmux_input.c
+++ b/src/osmux_input.c
@@ -686,6 +686,11 @@
        h->data = data;
 }

+void *osmux_xfrm_input_get_deliver_cb_data(struct osmux_in_handle *h)
+{
+       return h->data;
+}
+
 int osmux_xfrm_input_open_circuit(struct osmux_in_handle *h, int ccid,
                                  int dummy)
 {

--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/29569
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I95433b18802f73fa70e758f4aa02128eee940d88
Gerrit-Change-Number: 29569
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pes...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to