summaryrefslogtreecommitdiff
path: root/toxav/msi.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/msi.h')
-rwxr-xr-xtoxav/msi.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/toxav/msi.h b/toxav/msi.h
index c74f9f11..2a7c5ba8 100755
--- a/toxav/msi.h
+++ b/toxav/msi.h
@@ -33,7 +33,7 @@
33#define CALL_ID_LEN 12 33#define CALL_ID_LEN 12
34 34
35 35
36typedef void ( *MSICallback ) ( uint32_t, void *arg ); 36typedef void ( *MSICallback ) ( int32_t, void *arg );
37 37
38 38
39/** 39/**
@@ -89,7 +89,7 @@ typedef struct _MSICall { /* Call info structure */
89 uint32_t *peers; 89 uint32_t *peers;
90 uint16_t peer_count; 90 uint16_t peer_count;
91 91
92 uint32_t call_idx; /* Index of this call in MSISession */ 92 int32_t call_idx; /* Index of this call in MSISession */
93} MSICall; 93} MSICall;
94 94
95 95
@@ -101,7 +101,7 @@ typedef struct _MSISession {
101 101
102 /* Call handlers */ 102 /* Call handlers */
103 struct _MSICall **calls; 103 struct _MSICall **calls;
104 uint32_t max_calls; 104 int32_t max_calls;
105 105
106 int last_error_id; /* Determine the last error */ 106 int last_error_id; /* Determine the last error */
107 const uint8_t *last_error_str; 107 const uint8_t *last_error_str;
@@ -158,7 +158,7 @@ void msi_register_callback(MSICallback callback, MSICallbackID id, void* userdat
158 * @return MSISession* The created session. 158 * @return MSISession* The created session.
159 * @retval NULL Error occured. 159 * @retval NULL Error occured.
160 */ 160 */
161MSISession *msi_init_session ( Messenger *messenger, uint32_t max_calls ); 161MSISession *msi_init_session ( Messenger *messenger, int32_t max_calls );
162 162
163 163
164/** 164/**
@@ -180,7 +180,7 @@ int msi_terminate_session ( MSISession *session );
180 * @param friend_id The friend. 180 * @param friend_id The friend.
181 * @return int 181 * @return int
182 */ 182 */
183int msi_invite ( MSISession *session, uint32_t* call_index, MSICallType call_type, uint32_t rngsec, uint32_t friend_id ); 183int msi_invite ( MSISession *session, int32_t* call_index, MSICallType call_type, uint32_t rngsec, uint32_t friend_id );
184 184
185 185
186/** 186/**
@@ -192,7 +192,7 @@ int msi_invite ( MSISession *session, uint32_t* call_index, MSICallType call_typ
192 * @retval -1 Error occured. 192 * @retval -1 Error occured.
193 * @retval 0 Success. 193 * @retval 0 Success.
194 */ 194 */
195int msi_hangup ( MSISession *session, uint32_t call_index ); 195int msi_hangup ( MSISession *session, int32_t call_index );
196 196
197 197
198/** 198/**
@@ -203,7 +203,7 @@ int msi_hangup ( MSISession *session, uint32_t call_index );
203 * @param call_type Answer with Audio or Video(both). 203 * @param call_type Answer with Audio or Video(both).
204 * @return int 204 * @return int
205 */ 205 */
206int msi_answer ( MSISession *session, uint32_t call_index, MSICallType call_type ); 206int msi_answer ( MSISession *session, int32_t call_index, MSICallType call_type );
207 207
208 208
209/** 209/**
@@ -215,7 +215,7 @@ int msi_answer ( MSISession *session, uint32_t call_index, MSICallType call_type
215 * @param reason Set optional reason header. Pass NULL if none. 215 * @param reason Set optional reason header. Pass NULL if none.
216 * @return int 216 * @return int
217 */ 217 */
218int msi_cancel ( MSISession* session, uint32_t call_index, uint32_t peer, const char* reason ); 218int msi_cancel ( MSISession* session, int32_t call_index, uint32_t peer, const char* reason );
219 219
220 220
221/** 221/**
@@ -226,7 +226,7 @@ int msi_cancel ( MSISession* session, uint32_t call_index, uint32_t peer, const
226 * @param reason Set optional reason header. Pass NULL if none. 226 * @param reason Set optional reason header. Pass NULL if none.
227 * @return int 227 * @return int
228 */ 228 */
229int msi_reject ( MSISession *session, uint32_t call_index, const uint8_t *reason ); 229int msi_reject ( MSISession *session, int32_t call_index, const uint8_t *reason );
230 230
231 231
232/** 232/**
@@ -236,6 +236,6 @@ int msi_reject ( MSISession *session, uint32_t call_index, const uint8_t *reason
236 * @param call_index To which call is this action handled. 236 * @param call_index To which call is this action handled.
237 * @return int 237 * @return int
238 */ 238 */
239int msi_stopcall ( MSISession *session, uint32_t call_index ); 239int msi_stopcall ( MSISession *session, int32_t call_index );
240 240
241#endif /* __TOXMSI */ 241#endif /* __TOXMSI */