From 0fa03b924030c5791599451389ba84b81be84da8 Mon Sep 17 00:00:00 2001 From: mannol Date: Sat, 3 May 2014 01:46:03 +0200 Subject: Bunch of random changes --- toxav/rtp.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'toxav/rtp.h') diff --git a/toxav/rtp.h b/toxav/rtp.h index 58b16ab1..4d66e791 100755 --- a/toxav/rtp.h +++ b/toxav/rtp.h @@ -108,11 +108,7 @@ typedef struct _RTPSession { */ RTPExtHeader *ext_header; - /* External header identifiers */ - int resolution; - int framerate; - - + /* Since these are only references of the * call structure don't allocate or free */ @@ -126,6 +122,9 @@ typedef struct _RTPSession { RTPMessage *oldest_msg; RTPMessage *last_msg; /* tail */ + + uint64_t queue_limit;/* Default 100; modify per thy liking */ + uint64_t queue_size; /* currently holding << messages */ /* Msg prefix for core to know when recving */ uint8_t prefix; @@ -147,6 +146,15 @@ typedef struct _RTPSession { int rtp_release_session_recv ( RTPSession *session ); +/** + * @brief Call this to change queue limit + * + * @param session The session + * @param limit new limit + * @return void + */ +void rtp_queue_adjust_limit ( RTPSession *session, uint64_t limit ); + /** * @brief Get's oldest message in the list. * @@ -195,7 +203,7 @@ void rtp_free_msg ( RTPSession *session, RTPMessage *msg ); * @retval NULL Error occurred. */ RTPSession *rtp_init_session ( int payload_type, - Messenger *messenger, + Messenger *messenger, int friend_num, const uint8_t *encrypt_key, const uint8_t *decrypt_key, -- cgit v1.2.3