From 7b6e7703cdeeecae28552f589f249a6ab7f6c4d2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 29 May 2014 14:20:50 +0200 Subject: Make typedef for framelists. Add some error handling in SRTP class. Make new instance protection mechanism for SRTP. Make some error handling in lrtp public API. --- src/rtp_profile.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/rtp_profile.h') diff --git a/src/rtp_profile.h b/src/rtp_profile.h index bfb7572..6865adb 100644 --- a/src/rtp_profile.h +++ b/src/rtp_profile.h @@ -42,6 +42,8 @@ typedef struct { unsigned long int timestamp; } inputframe_t; +typedef std::list iframelist_t; + typedef struct { char *data; size_t size; @@ -52,13 +54,15 @@ typedef struct { } outputframe_t; +typedef std::list oframelist_t; + struct lrtp_profile_t { struct lrtp_t *lrtp; lrtp_profile_id_t id; unsigned int csrc; // Frames ready for packing with this profile: - std::list framelist; + iframelist_t framelist; // Profile functions: /** @@ -78,7 +82,7 @@ struct lrtp_profile_t { int (*unpack)(struct lrtp_profile_t *profile, const RTP &rtp, - std::list &framelist); + oframelist_t &framelist); void (*destroy)(struct lrtp_profile_t *profile); -- cgit v1.2.3