From 6e1c3bb16e5b0d396810a1a534f4854d55bcf4ac Mon Sep 17 00:00:00 2001 From: aunsane Date: Thu, 23 Feb 2017 15:04:09 +0300 Subject: Tox: it seems that irungentoo/toxcore no longer be updated, so we switch to TokTok/c-toxcore --- protocols/Tox/src/api_transfer.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'protocols/Tox/src/api_transfer.cpp') diff --git a/protocols/Tox/src/api_transfer.cpp b/protocols/Tox/src/api_transfer.cpp index 8906436084..446a2ccc80 100644 --- a/protocols/Tox/src/api_transfer.cpp +++ b/protocols/Tox/src/api_transfer.cpp @@ -22,24 +22,24 @@ bool tox_file_send_chunk(Tox *tox, uint32_t friend_number, uint32_t file_number, return CreateFunction(__FUNCTION__)(tox, friend_number, file_number, position, data, length, error); } -void tox_callback_file_chunk_request(Tox *tox, tox_file_chunk_request_cb *function, void *user_data) +void tox_callback_file_chunk_request(Tox *tox, tox_file_chunk_request_cb *function) { - CreateFunction(__FUNCTION__)(tox, function, user_data); + CreateFunction(__FUNCTION__)(tox, function); } -void tox_callback_file_recv(Tox *tox, tox_file_recv_cb *function, void *user_data) +void tox_callback_file_recv(Tox *tox, tox_file_recv_cb *function) { - CreateFunction(__FUNCTION__)(tox, function, user_data); + CreateFunction(__FUNCTION__)(tox, function); } -void tox_callback_file_recv_control(Tox *tox, tox_file_recv_control_cb *function, void *user_data) +void tox_callback_file_recv_control(Tox *tox, tox_file_recv_control_cb *function) { - CreateFunction(__FUNCTION__)(tox, function, user_data); + CreateFunction(__FUNCTION__)(tox, function); } -void tox_callback_file_recv_chunk(Tox *tox, tox_file_recv_chunk_cb *function, void *user_data) +void tox_callback_file_recv_chunk(Tox *tox, tox_file_recv_chunk_cb *function) { - CreateFunction(__FUNCTION__)(tox, function, user_data); + CreateFunction(__FUNCTION__)(tox, function); } bool tox_file_control(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_CONTROL control, TOX_ERR_FILE_CONTROL *error) -- cgit v1.2.3