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

Change-Id: I46628d1f712e9c5c56c306e27c34ff45731c0172
This commit is contained in:
Pau Espin 2022-08-31 17:11:55 +02:00
parent 51fa5ad16e
commit 75ae80da03
1 changed files with 16 additions and 16 deletions

View File

@ -825,22 +825,6 @@ void osmux_xfrm_input_init(struct osmux_in_handle *h)
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 @@ void osmux_xfrm_output_init(struct osmux_out_handle *h, uint32_t rtp_ssrc)
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; \