diff options
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r--[-rwxr-xr-x] | toxav/rtp.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/toxav/rtp.h b/toxav/rtp.h index 40532391..45cf83b6 100755..100644 --- a/toxav/rtp.h +++ b/toxav/rtp.h | |||
@@ -107,10 +107,6 @@ typedef struct _RTPSession { | |||
107 | */ | 107 | */ |
108 | RTPExtHeader *ext_header; | 108 | RTPExtHeader *ext_header; |
109 | 109 | ||
110 | /* External header identifiers */ | ||
111 | int resolution; | ||
112 | int framerate; | ||
113 | |||
114 | 110 | ||
115 | /* Since these are only references of the | 111 | /* Since these are only references of the |
116 | * call structure don't allocate or free | 112 | * call structure don't allocate or free |
@@ -126,6 +122,9 @@ typedef struct _RTPSession { | |||
126 | RTPMessage *oldest_msg; | 122 | RTPMessage *oldest_msg; |
127 | RTPMessage *last_msg; /* tail */ | 123 | RTPMessage *last_msg; /* tail */ |
128 | 124 | ||
125 | uint64_t queue_limit;/* Default 100; modify per thy liking */ | ||
126 | uint64_t queue_size; /* currently holding << messages */ | ||
127 | |||
129 | /* Msg prefix for core to know when recving */ | 128 | /* Msg prefix for core to know when recving */ |
130 | uint8_t prefix; | 129 | uint8_t prefix; |
131 | 130 | ||
@@ -147,6 +146,15 @@ int rtp_release_session_recv ( RTPSession *session ); | |||
147 | 146 | ||
148 | 147 | ||
149 | /** | 148 | /** |
149 | * @brief Call this to change queue limit | ||
150 | * | ||
151 | * @param session The session | ||
152 | * @param limit new limit | ||
153 | * @return void | ||
154 | */ | ||
155 | void rtp_queue_adjust_limit ( RTPSession *session, uint64_t limit ); | ||
156 | |||
157 | /** | ||
150 | * @brief Get's oldest message in the list. | 158 | * @brief Get's oldest message in the list. |
151 | * | 159 | * |
152 | * @param session Where the list is. | 160 | * @param session Where the list is. |
@@ -194,7 +202,7 @@ void rtp_free_msg ( RTPSession *session, RTPMessage *msg ); | |||
194 | * @retval NULL Error occurred. | 202 | * @retval NULL Error occurred. |
195 | */ | 203 | */ |
196 | RTPSession *rtp_init_session ( int payload_type, | 204 | RTPSession *rtp_init_session ( int payload_type, |
197 | Messenger *messenger, | 205 | Messenger *messenger, |
198 | int friend_num, | 206 | int friend_num, |
199 | const uint8_t *encrypt_key, | 207 | const uint8_t *encrypt_key, |
200 | const uint8_t *decrypt_key, | 208 | const uint8_t *decrypt_key, |