summaryrefslogtreecommitdiff
path: root/toxav/rtp.h
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2015-04-29 01:01:25 +0200
committermannol <eniz_vukovic@hotmail.com>2015-04-29 01:01:25 +0200
commit9bba7a0434d0967d5dd76b8afc7783ea2edad0cf (patch)
tree6486c250acb38429a63a62e54cd1e4bcb0a029ee /toxav/rtp.h
parente4a020333d76bc30172f54f2545677f01bdd54b6 (diff)
Done
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r--toxav/rtp.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/toxav/rtp.h b/toxav/rtp.h
index c973d262..a158d724 100644
--- a/toxav/rtp.h
+++ b/toxav/rtp.h
@@ -113,10 +113,9 @@ typedef struct {
113 uint8_t prefix; 113 uint8_t prefix;
114 114
115 Messenger *m; 115 Messenger *m;
116 int friend_id; 116 int friend_number;
117 struct RTCPSession_s *rtcp_session; 117 struct RTCPSession_s *rtcp_session;
118 118
119
120 void *cs; 119 void *cs;
121 int (*mcb) (void*, RTPMessage* msg); 120 int (*mcb) (void*, RTPMessage* msg);
122 121
@@ -125,33 +124,27 @@ typedef struct {
125/** 124/**
126 * Must be called before calling any other rtp function. 125 * Must be called before calling any other rtp function.
127 */ 126 */
128RTPSession *rtp_new ( int payload_type, Messenger *messenger, int friend_num, void* cs, int (*mcb) (void*, RTPMessage*) ); 127RTPSession *rtp_new ( int payload_type, Messenger *m, int friend_num, void* cs, int (*mcb) (void*, RTPMessage*) );
129
130/** 128/**
131 * Terminate the session. 129 * Terminate the session.
132 */ 130 */
133void rtp_kill ( RTPSession* session ); 131void rtp_kill ( RTPSession* session );
134
135/** 132/**
136 * Do periodical rtp work. 133 * Do periodical rtp work.
137 */ 134 */
138int rtp_do(RTPSession *session); 135int rtp_do(RTPSession *session);
139
140/** 136/**
141 * By default rtp is in receiving state 137 * By default rtp is in receiving state
142 */ 138 */
143int rtp_start_receiving (RTPSession *session); 139int rtp_start_receiving (RTPSession *session);
144
145/** 140/**
146 * Pause rtp receiving mode. 141 * Pause rtp receiving mode.
147 */ 142 */
148int rtp_stop_receiving (RTPSession *session); 143int rtp_stop_receiving (RTPSession *session);
149
150/** 144/**
151 * Sends msg to RTPSession::dest 145 * Sends msg to RTPSession::dest
152 */ 146 */
153int rtp_send_data ( RTPSession* session, const uint8_t* data, uint16_t length, bool dummy ); 147int rtp_send_data ( RTPSession* session, const uint8_t* data, uint16_t length, bool dummy );
154
155/** 148/**
156 * Dealloc msg. 149 * Dealloc msg.
157 */ 150 */