diff --git a/include/osmocom/netif/amr.h b/include/osmocom/netif/amr.h index 7a48923..082361f 100644 --- a/include/osmocom/netif/amr.h +++ b/include/osmocom/netif/amr.h @@ -62,4 +62,9 @@ struct amr_hdr { #endif }; +static inline void *osmo_amr_get_payload(struct amr_hdr *amrh) +{ + return (uint8_t *)amrh + sizeof(struct amr_hdr); +} + #endif