summaryrefslogtreecommitdiff
path: root/toxav/rtp.h
diff options
context:
space:
mode:
authornotsecure <notsecure@marek.ca>2014-07-07 16:10:10 -0400
committernotsecure <notsecure@marek.ca>2014-07-07 16:10:10 -0400
commit3d4de767fe8fefb5eb2456674be9930388564ee8 (patch)
treea423434166b07578be929c8b3d93dde877130d02 /toxav/rtp.h
parent738bc56da7fc9d80fa4cb1d0a442bd74b3284bfe (diff)
use callbacks for a/v
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r--toxav/rtp.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/toxav/rtp.h b/toxav/rtp.h
index 727839c6..45128285 100644
--- a/toxav/rtp.h
+++ b/toxav/rtp.h
@@ -105,17 +105,12 @@ typedef struct _RTPSession {
105 */ 105 */
106 RTPExtHeader *ext_header; 106 RTPExtHeader *ext_header;
107 107
108 RTPMessage *oldest_msg;
109 RTPMessage *last_msg; /* tail */
110
111 uint64_t queue_limit;/* Default 100; modify per thy liking */
112 uint64_t queue_size; /* currently holding << messages */
113
114 /* Msg prefix for core to know when recving */ 108 /* Msg prefix for core to know when recving */
115 uint8_t prefix; 109 uint8_t prefix;
116 110
117 pthread_mutex_t mutex;
118 int dest; 111 int dest;
112 int32_t call_index;
113 struct _ToxAv *av;
119 114
120} RTPSession; 115} RTPSession;
121 116
@@ -172,7 +167,6 @@ int rtp_send_msg ( RTPSession *session, Messenger *messenger, const uint8_t *dat
172 */ 167 */
173void rtp_free_msg ( RTPSession *session, RTPMessage *msg ); 168void rtp_free_msg ( RTPSession *session, RTPMessage *msg );
174 169
175
176/** 170/**
177 * @brief Must be called before calling any other rtp function. It's used 171 * @brief Must be called before calling any other rtp function. It's used
178 * to initialize RTP control session. 172 * to initialize RTP control session.