diff options
author | mannol <eniz_vukovic@hotmail.com> | 2014-05-03 01:46:03 +0200 |
---|---|---|
committer | mannol <eniz_vukovic@hotmail.com> | 2014-05-03 01:46:03 +0200 |
commit | 0fa03b924030c5791599451389ba84b81be84da8 (patch) | |
tree | 0d3b93baeb3c18b2f1afce5b9455c9b8bd21ec89 /toxav/rtp.h | |
parent | 42b25a4d3e2fe66f03cbd8c866d8af7bd4f6e5a7 (diff) |
Bunch of random changes
Diffstat (limited to 'toxav/rtp.h')
-rwxr-xr-x | toxav/rtp.h | 20 |
1 files changed, 14 insertions, 6 deletions
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 { | |||
108 | */ | 108 | */ |
109 | RTPExtHeader *ext_header; | 109 | RTPExtHeader *ext_header; |
110 | 110 | ||
111 | /* External header identifiers */ | 111 | |
112 | int resolution; | ||
113 | int framerate; | ||
114 | |||
115 | |||
116 | /* Since these are only references of the | 112 | /* Since these are only references of the |
117 | * call structure don't allocate or free | 113 | * call structure don't allocate or free |
118 | */ | 114 | */ |
@@ -126,6 +122,9 @@ typedef struct _RTPSession { | |||
126 | 122 | ||
127 | RTPMessage *oldest_msg; | 123 | RTPMessage *oldest_msg; |
128 | RTPMessage *last_msg; /* tail */ | 124 | RTPMessage *last_msg; /* tail */ |
125 | |||
126 | uint64_t queue_limit;/* Default 100; modify per thy liking */ | ||
127 | uint64_t queue_size; /* currently holding << messages */ | ||
129 | 128 | ||
130 | /* Msg prefix for core to know when recving */ | 129 | /* Msg prefix for core to know when recving */ |
131 | uint8_t prefix; | 130 | uint8_t prefix; |
@@ -148,6 +147,15 @@ int rtp_release_session_recv ( RTPSession *session ); | |||
148 | 147 | ||
149 | 148 | ||
150 | /** | 149 | /** |
150 | * @brief Call this to change queue limit | ||
151 | * | ||
152 | * @param session The session | ||
153 | * @param limit new limit | ||
154 | * @return void | ||
155 | */ | ||
156 | void rtp_queue_adjust_limit ( RTPSession *session, uint64_t limit ); | ||
157 | |||
158 | /** | ||
151 | * @brief Get's oldest message in the list. | 159 | * @brief Get's oldest message in the list. |
152 | * | 160 | * |
153 | * @param session Where the list is. | 161 | * @param session Where the list is. |
@@ -195,7 +203,7 @@ void rtp_free_msg ( RTPSession *session, RTPMessage *msg ); | |||
195 | * @retval NULL Error occurred. | 203 | * @retval NULL Error occurred. |
196 | */ | 204 | */ |
197 | RTPSession *rtp_init_session ( int payload_type, | 205 | RTPSession *rtp_init_session ( int payload_type, |
198 | Messenger *messenger, | 206 | Messenger *messenger, |
199 | int friend_num, | 207 | int friend_num, |
200 | const uint8_t *encrypt_key, | 208 | const uint8_t *encrypt_key, |
201 | const uint8_t *decrypt_key, | 209 | const uint8_t *decrypt_key, |