pespin submitted this change.

View Change

Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved neels: Looks good to me, but someone else must approve
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(-)

diff --git a/src/osmux.c b/src/osmux.c
index e918d6b..bf03cc5 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -825,22 +825,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)
{
@@ -897,6 +881,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 change 29257. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I46628d1f712e9c5c56c306e27c34ff45731c0172
Gerrit-Change-Number: 29257
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged