osmux: kill osmux_get_hdr()
Never used, so let's get rid of this function. We can recover it later on in case we need it.
This commit is contained in:
parent
f9407cc668
commit
e1aefad278
|
@ -70,8 +70,6 @@ struct osmux_out_handle {
|
||||||
uint32_t rtp_ssrc;
|
uint32_t rtp_ssrc;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct osmux_hdr *osmux_get_hdr(struct msgb *msg);
|
|
||||||
|
|
||||||
static inline uint8_t *osmux_get_payload(struct osmux_hdr *osmuxh)
|
static inline uint8_t *osmux_get_payload(struct osmux_hdr *osmuxh)
|
||||||
{
|
{
|
||||||
return (uint8_t *)osmuxh + sizeof(struct osmux_hdr);
|
return (uint8_t *)osmuxh + sizeof(struct osmux_hdr);
|
||||||
|
|
12
src/osmux.c
12
src/osmux.c
|
@ -39,18 +39,6 @@
|
||||||
|
|
||||||
static void *osmux_ctx;
|
static void *osmux_ctx;
|
||||||
|
|
||||||
struct osmux_hdr *osmux_get_hdr(struct msgb *msg)
|
|
||||||
{
|
|
||||||
struct osmux_hdr *osmuxh = (struct osmux_hdr *)msg->data;
|
|
||||||
|
|
||||||
if (msg->len < sizeof(struct osmux_hdr)) {
|
|
||||||
DEBUGPC(DLMUX, "received OSMUX frame too short (len = %d)\n",
|
|
||||||
msg->len);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
return osmuxh;
|
|
||||||
}
|
|
||||||
|
|
||||||
static uint32_t osmux_get_payload_len(struct osmux_hdr *osmuxh)
|
static uint32_t osmux_get_payload_len(struct osmux_hdr *osmuxh)
|
||||||
{
|
{
|
||||||
return osmo_amr_bytes(osmuxh->amr_ft) * (osmuxh->ctr+1);
|
return osmo_amr_bytes(osmuxh->amr_ft) * (osmuxh->ctr+1);
|
||||||
|
|
Loading…
Reference in New Issue