diff options
author | mannol <eniz_vukovic@hotmail.com> | 2015-04-29 01:01:25 +0200 |
---|---|---|
committer | mannol <eniz_vukovic@hotmail.com> | 2015-04-29 01:01:25 +0200 |
commit | 9bba7a0434d0967d5dd76b8afc7783ea2edad0cf (patch) | |
tree | 6486c250acb38429a63a62e54cd1e4bcb0a029ee /toxav/rtp.h | |
parent | e4a020333d76bc30172f54f2545677f01bdd54b6 (diff) |
Done
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r-- | toxav/rtp.h | 11 |
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 | */ |
128 | RTPSession *rtp_new ( int payload_type, Messenger *messenger, int friend_num, void* cs, int (*mcb) (void*, RTPMessage*) ); | 127 | RTPSession *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 | */ |
133 | void rtp_kill ( RTPSession* session ); | 131 | void rtp_kill ( RTPSession* session ); |
134 | |||
135 | /** | 132 | /** |
136 | * Do periodical rtp work. | 133 | * Do periodical rtp work. |
137 | */ | 134 | */ |
138 | int rtp_do(RTPSession *session); | 135 | int 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 | */ |
143 | int rtp_start_receiving (RTPSession *session); | 139 | int rtp_start_receiving (RTPSession *session); |
144 | |||
145 | /** | 140 | /** |
146 | * Pause rtp receiving mode. | 141 | * Pause rtp receiving mode. |
147 | */ | 142 | */ |
148 | int rtp_stop_receiving (RTPSession *session); | 143 | int rtp_stop_receiving (RTPSession *session); |
149 | |||
150 | /** | 144 | /** |
151 | * Sends msg to RTPSession::dest | 145 | * Sends msg to RTPSession::dest |
152 | */ | 146 | */ |
153 | int rtp_send_data ( RTPSession* session, const uint8_t* data, uint16_t length, bool dummy ); | 147 | int 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 | */ |