diff options
Diffstat (limited to 'auto_tests/toxav_basic_test.c')
-rw-r--r-- | auto_tests/toxav_basic_test.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/auto_tests/toxav_basic_test.c b/auto_tests/toxav_basic_test.c index c8ebd497..c0162582 100644 --- a/auto_tests/toxav_basic_test.c +++ b/auto_tests/toxav_basic_test.c | |||
@@ -58,7 +58,7 @@ void accept_friend_request(Tox *m, uint8_t *public_key, uint8_t *data, uint16_t | |||
58 | 58 | ||
59 | 59 | ||
60 | /******************************************************************************/ | 60 | /******************************************************************************/ |
61 | void callback_recv_invite ( uint32_t call_index, void *_arg ) | 61 | void callback_recv_invite ( int32_t call_index, void *_arg ) |
62 | { | 62 | { |
63 | Status *cast = _arg; | 63 | Status *cast = _arg; |
64 | 64 | ||
@@ -66,14 +66,14 @@ void callback_recv_invite ( uint32_t call_index, void *_arg ) | |||
66 | cast->Bob.status = Ringing; | 66 | cast->Bob.status = Ringing; |
67 | cast->Bob.call_index = call_index; | 67 | cast->Bob.call_index = call_index; |
68 | } | 68 | } |
69 | void callback_recv_ringing ( uint32_t call_index, void *_arg ) | 69 | void callback_recv_ringing ( int32_t call_index, void *_arg ) |
70 | { | 70 | { |
71 | Status *cast = _arg; | 71 | Status *cast = _arg; |
72 | 72 | ||
73 | /* Alice always sends invite */ | 73 | /* Alice always sends invite */ |
74 | cast->Alice.status = Ringing; | 74 | cast->Alice.status = Ringing; |
75 | } | 75 | } |
76 | void callback_recv_starting ( uint32_t call_index, void *_arg ) | 76 | void callback_recv_starting ( int32_t call_index, void *_arg ) |
77 | { | 77 | { |
78 | Status *cast = _arg; | 78 | Status *cast = _arg; |
79 | 79 | ||
@@ -82,7 +82,7 @@ void callback_recv_starting ( uint32_t call_index, void *_arg ) | |||
82 | cast->Alice.status = InCall; | 82 | cast->Alice.status = InCall; |
83 | toxav_prepare_transmission(cast->Alice.av, call_index, &muhcaps, 1); | 83 | toxav_prepare_transmission(cast->Alice.av, call_index, &muhcaps, 1); |
84 | } | 84 | } |
85 | void callback_recv_ending ( uint32_t call_index, void *_arg ) | 85 | void callback_recv_ending ( int32_t call_index, void *_arg ) |
86 | { | 86 | { |
87 | Status *cast = _arg; | 87 | Status *cast = _arg; |
88 | 88 | ||
@@ -95,12 +95,12 @@ void callback_recv_ending ( uint32_t call_index, void *_arg ) | |||
95 | } | 95 | } |
96 | } | 96 | } |
97 | 97 | ||
98 | void callback_recv_error ( uint32_t call_index, void *_arg ) | 98 | void callback_recv_error ( int32_t call_index, void *_arg ) |
99 | { | 99 | { |
100 | ck_assert_msg(0, "AV internal error"); | 100 | ck_assert_msg(0, "AV internal error"); |
101 | } | 101 | } |
102 | 102 | ||
103 | void callback_call_started ( uint32_t call_index, void *_arg ) | 103 | void callback_call_started ( int32_t call_index, void *_arg ) |
104 | { | 104 | { |
105 | Status *cast = _arg; | 105 | Status *cast = _arg; |
106 | 106 | ||
@@ -109,14 +109,14 @@ void callback_call_started ( uint32_t call_index, void *_arg ) | |||
109 | cast->Bob.status = InCall; | 109 | cast->Bob.status = InCall; |
110 | toxav_prepare_transmission(cast->Bob.av, call_index, &muhcaps, 1); | 110 | toxav_prepare_transmission(cast->Bob.av, call_index, &muhcaps, 1); |
111 | } | 111 | } |
112 | void callback_call_canceled ( uint32_t call_index, void *_arg ) | 112 | void callback_call_canceled ( int32_t call_index, void *_arg ) |
113 | { | 113 | { |
114 | Status *cast = _arg; | 114 | Status *cast = _arg; |
115 | 115 | ||
116 | printf ( "Call Canceled for Bob!\n" ); | 116 | printf ( "Call Canceled for Bob!\n" ); |
117 | cast->Bob.status = Cancel; | 117 | cast->Bob.status = Cancel; |
118 | } | 118 | } |
119 | void callback_call_rejected ( uint32_t call_index, void *_arg ) | 119 | void callback_call_rejected ( int32_t call_index, void *_arg ) |
120 | { | 120 | { |
121 | Status *cast = _arg; | 121 | Status *cast = _arg; |
122 | 122 | ||
@@ -125,7 +125,7 @@ void callback_call_rejected ( uint32_t call_index, void *_arg ) | |||
125 | /* If Bob rejects, call is ended for alice and she sends ending */ | 125 | /* If Bob rejects, call is ended for alice and she sends ending */ |
126 | cast->Alice.status = Rejected; | 126 | cast->Alice.status = Rejected; |
127 | } | 127 | } |
128 | void callback_call_ended ( uint32_t call_index, void *_arg ) | 128 | void callback_call_ended ( int32_t call_index, void *_arg ) |
129 | { | 129 | { |
130 | Status *cast = _arg; | 130 | Status *cast = _arg; |
131 | 131 | ||
@@ -133,7 +133,7 @@ void callback_call_ended ( uint32_t call_index, void *_arg ) | |||
133 | cast->Bob.status = Ended; | 133 | cast->Bob.status = Ended; |
134 | } | 134 | } |
135 | 135 | ||
136 | void callback_requ_timeout ( uint32_t call_index, void *_arg ) | 136 | void callback_requ_timeout ( int32_t call_index, void *_arg ) |
137 | { | 137 | { |
138 | ck_assert_msg(0, "No answer!"); | 138 | ck_assert_msg(0, "No answer!"); |
139 | } | 139 | } |