From 33817320cbf6900fcfc08811a2c20cb739a2f398 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 6 Aug 2012 17:35:26 +0200 Subject: rtp: add osmo_rtp_snprintf To print the RTP header and payload. --- include/osmocom/netif/rtp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/netif/rtp.h') diff --git a/include/osmocom/netif/rtp.h b/include/osmocom/netif/rtp.h index 4b290c6..1854d6c 100644 --- a/include/osmocom/netif/rtp.h +++ b/include/osmocom/netif/rtp.h @@ -62,6 +62,8 @@ void *osmo_rtp_get_payload(struct rtp_hdr *rtph, struct msgb *msg, uint32_t *ple struct msgb *osmo_rtp_build(struct osmo_rtp_handle *h, uint8_t payload_type, uint32_t payload_len, const void *data, uint32_t duration); +int osmo_rtp_snprintf(char *buf, size_t size, struct msgb *msg); + /* supported RTP payload types. */ #define RTP_PT_RTCP 72 /* RFC 3551: 72-76 for RTCP */ -- cgit v1.2.3