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


Change subject: osmux: Move osmux_xfrm_output_set_tx_cb() further down to the 
xfrm_output section
......................................................................

osmux: Move osmux_xfrm_output_set_tx_cb() further down to the xfrm_output 
section

Change-Id: I46628d1f712e9c5c56c306e27c34ff45731c0172
---
M src/osmux.c
1 file changed, 16 insertions(+), 16 deletions(-)



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

diff --git a/src/osmux.c b/src/osmux.c
index 990216e..7d26fe8 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -831,22 +831,6 @@
        LOGP(DLMUX, LOGL_DEBUG, "initialized osmux input converter\n");
 }

-/*! \brief Set transmission callback to call when a generated RTP packet is to 
be transmitted
- *  \param[in] h the osmux out handle handling a specific CID
- *  \param[in] osmuxh Buffer pointing to osmux frame header structure and AMR 
payload
- *  \return Number of generated RTP packets
- *
- * This Function sets the callback called by the interal timer set by
- * osmux_xfrm_out_sched function.
- */
-void osmux_xfrm_output_set_tx_cb(struct osmux_out_handle *h,
-                               void (*tx_cb)(struct msgb *msg, void *data),
-                               void *data)
-{
-       h->tx_cb = tx_cb;
-       h->data = data;
-}
-
 int osmux_xfrm_input_open_circuit(struct osmux_in_handle *h, int ccid,
                                  int dummy)
 {
@@ -903,6 +887,22 @@
        osmux_xfrm_output_init2(h, rtp_ssrc, 98);
 }

+/*! \brief Set transmission callback to call when a generated RTP packet is to 
be transmitted
+ *  \param[in] h the osmux out handle handling a specific CID
+ *  \param[in] osmuxh Buffer pointing to osmux frame header structure and AMR 
payload
+ *  \return Number of generated RTP packets
+ *
+ * This Function sets the callback called by the interal timer set by
+ * osmux_xfrm_out_sched function.
+ */
+void osmux_xfrm_output_set_tx_cb(struct osmux_out_handle *h,
+                               void (*tx_cb)(struct msgb *msg, void *data),
+                               void *data)
+{
+       h->tx_cb = tx_cb;
+       h->data = data;
+}
+
 #define SNPRINTF_BUFFER_SIZE(ret, remain, offset)      \
        if (ret < 0)                                    \
                ret = 0;                                \

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

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I46628d1f712e9c5c56c306e27c34ff45731c0172
Gerrit-Change-Number: 29257
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to