aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2013-02-19 17:14:33 +0100
committerPablo Neira Ayuso <pablo@gnumonks.org>2013-02-19 17:14:33 +0100
commitd32caea9ea848cb99698dfa6afd785022ac64973 (patch)
tree21950f317cb3d52bd4f4ff2ee524cd46592e6231 /include
parentaeeb4399a235e7dd25708adf59b3413133adbed2 (diff)
osmux: add osmux_snprintf
Useful for debugging purposes. Modify also examples to use it.
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/netif/osmux.h4
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);