diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-07-09 19:40:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-07-12 13:01:25 +0200 |
commit | c6dceb8cf777ff61ffb2945dbce8dd70d3de8e3b (patch) | |
tree | 06855ea02364848dc427d8ab0eb69a631824ba50 | |
parent | 93b16cb87132313f963cc75576b7904f3aa46ff2 (diff) |
amr: add osmo_amr_get_payload
-rw-r--r-- | include/osmocom/netif/amr.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |