diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2013-02-19 17:14:33 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2013-02-19 17:14:33 +0100 |
commit | d32caea9ea848cb99698dfa6afd785022ac64973 (patch) | |
tree | 21950f317cb3d52bd4f4ff2ee524cd46592e6231 /include/osmocom/netif | |
parent | aeeb4399a235e7dd25708adf59b3413133adbed2 (diff) |
osmux: add osmux_snprintf
Useful for debugging purposes. Modify also examples to use it.
Diffstat (limited to 'include/osmocom/netif')
-rw-r--r-- | include/osmocom/netif/osmux.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/netif/osmux.h b/include/osmocom/netif/osmux.h index d7ebf55..d50c7d5 100644 --- a/include/osmocom/netif/osmux.h +++ b/include/osmocom/netif/osmux.h @@ -56,11 +56,15 @@ struct osmux_out_handle { uint32_t rtp_timestamp; }; +struct osmux_hdr *osmux_get_hdr(struct msgb *msg); + static inline uint8_t *osmux_get_payload(struct osmux_hdr *osmuxh) { return (uint8_t *)osmuxh + sizeof(struct osmux_hdr); } +int osmux_snprintf(char *buf, size_t size, struct msgb *msg); + void osmux_xfrm_input_init(struct osmux_in_handle *h); int osmux_xfrm_input(struct osmux_in_handle *h, struct msgb *msg, int ccid); |