summaryrefslogtreecommitdiff
path: root/toxav/rtp.h
diff options
context:
space:
mode:
authorzoff99 <zoff@zoff.cc>2020-04-08 19:58:06 +0200
committeriphydf <iphydf@users.noreply.github.com>2020-04-09 11:51:34 +0000
commitaf6e27bbf1b447e6e85520b965f009b7ece81004 (patch)
treefc9a0523adfd2303732f00e7e0b1742205943167 /toxav/rtp.h
parent2a79748ed955c4f8670adb6f04f3217f641e8965 (diff)
Use public API for sending in RTP.
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r--toxav/rtp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/toxav/rtp.h b/toxav/rtp.h
index 46cd6b86..be9e63f8 100644
--- a/toxav/rtp.h
+++ b/toxav/rtp.h
@@ -16,6 +16,11 @@
16extern "C" { 16extern "C" {
17#endif 17#endif
18 18
19#ifndef TOX_DEFINED
20#define TOX_DEFINED
21typedef struct Tox Tox;
22#endif /* TOX_DEFINED */
23
19/** 24/**
20 * RTPHeader serialised size in bytes. 25 * RTPHeader serialised size in bytes.
21 */ 26 */
@@ -159,6 +164,7 @@ typedef struct RTPSession {
159 struct RTPWorkBufferList *work_buffer_list; 164 struct RTPWorkBufferList *work_buffer_list;
160 uint8_t first_packets_counter; /* dismiss first few lost video packets */ 165 uint8_t first_packets_counter; /* dismiss first few lost video packets */
161 Messenger *m; 166 Messenger *m;
167 Tox *tox;
162 uint32_t friend_number; 168 uint32_t friend_number;
163 BWController *bwc; 169 BWController *bwc;
164 void *cs; 170 void *cs;
@@ -184,7 +190,7 @@ size_t rtp_header_pack(uint8_t *rdata, const struct RTPHeader *header);
184 */ 190 */
185size_t rtp_header_unpack(const uint8_t *data, struct RTPHeader *header); 191size_t rtp_header_unpack(const uint8_t *data, struct RTPHeader *header);
186 192
187RTPSession *rtp_new(int payload_type, Messenger *m, uint32_t friendnumber, 193RTPSession *rtp_new(int payload_type, Messenger *m, Tox *tox, uint32_t friendnumber,
188 BWController *bwc, void *cs, rtp_m_cb *mcb); 194 BWController *bwc, void *cs, rtp_m_cb *mcb);
189void rtp_kill(RTPSession *session); 195void rtp_kill(RTPSession *session);
190int rtp_allow_receiving(RTPSession *session); 196int rtp_allow_receiving(RTPSession *session);