@@ -23,7 +23,7 @@ typedef struct State {
2323 uint32_t peers ;
2424} State ;
2525
26- static void handle_self_connection_status (Tox * tox , const Tox_Event_Self_Connection_Status * event , void * user_data )
26+ static void handle_self_connection_status (const Tox_Event_Self_Connection_Status * event , void * user_data )
2727{
2828 State * state = (State * )user_data ;
2929
@@ -32,7 +32,7 @@ static void handle_self_connection_status(Tox *tox, const Tox_Event_Self_Connect
3232 state -> self_online = connection_status != TOX_CONNECTION_NONE ;
3333}
3434
35- static void handle_friend_connection_status (Tox * tox , const Tox_Event_Friend_Connection_Status * event ,
35+ static void handle_friend_connection_status (const Tox_Event_Friend_Connection_Status * event ,
3636 void * user_data )
3737{
3838 State * state = (State * )user_data ;
@@ -43,7 +43,7 @@ static void handle_friend_connection_status(Tox *tox, const Tox_Event_Friend_Con
4343 state -> friend_online = connection_status != TOX_CONNECTION_NONE ;
4444}
4545
46- static void handle_conference_invite (Tox * tox , const Tox_Event_Conference_Invite * event , void * user_data )
46+ static void handle_conference_invite (const Tox_Event_Conference_Invite * event , void * user_data )
4747{
4848 State * state = (State * )user_data ;
4949
@@ -64,7 +64,7 @@ static void handle_conference_invite(Tox *tox, const Tox_Event_Conference_Invite
6464 }
6565}
6666
67- static void handle_conference_message (Tox * tox , const Tox_Event_Conference_Message * event , void * user_data )
67+ static void handle_conference_message (const Tox_Event_Conference_Message * event , void * user_data )
6868{
6969 State * state = (State * )user_data ;
7070
@@ -81,7 +81,7 @@ static void handle_conference_message(Tox *tox, const Tox_Event_Conference_Messa
8181 state -> received = true;
8282}
8383
84- static void handle_conference_peer_list_changed (Tox * tox , const Tox_Event_Conference_Peer_List_Changed * event , void * user_data )
84+ static void handle_conference_peer_list_changed (const Tox_Event_Conference_Peer_List_Changed * event , void * user_data )
8585{
8686 State * state = (State * )user_data ;
8787
@@ -101,7 +101,7 @@ static void handle_conference_peer_list_changed(Tox *tox, const Tox_Event_Confer
101101 state -> peers = count ;
102102}
103103
104- static void handle_conference_connected (Tox * tox , const Tox_Event_Conference_Connected * event , void * user_data )
104+ static void handle_conference_connected (const Tox_Event_Conference_Connected * event , void * user_data )
105105{
106106 State * state = (State * )user_data ;
107107
@@ -122,7 +122,7 @@ static void iterate_one(
122122 Tox_Err_Events_Iterate err ;
123123 Tox_Events * events = tox_events_iterate (tox , true, & err );
124124 ck_assert (err == TOX_ERR_EVENTS_ITERATE_OK );
125- tox_dispatch_invoke (dispatch , events , tox , state );
125+ tox_dispatch_invoke (dispatch , events , state );
126126 tox_events_free (events );
127127}
128128
0 commit comments