aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-08-06 17:35:26 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-06 21:04:21 +0200
commit33817320cbf6900fcfc08811a2c20cb739a2f398 (patch)
tree74c2bfd90b0c38d5c81d5e1892a95171f761596a /include/osmocom
parentf4b11c071766554b6ac74e8e91fc72cbaf138784 (diff)
rtp: add osmo_rtp_snprintf
To print the RTP header and payload.
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/netif/rtp.h2
1 files changed, 2 insertions, 0 deletions
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 */