diff options
author | michael bishop <cleverca22@gmail.com> | 2016-09-09 10:30:35 -0300 |
---|---|---|
committer | michael bishop <cleverca22@gmail.com> | 2016-09-10 01:09:37 -0300 |
commit | 05f474b4df8171412237f46c943822edd202b4a9 (patch) | |
tree | 7cf886de28682fe5d4c40de034c9ebfae75d3eae /toxcore/tox.h | |
parent | 406d292107f66a06f8db695645345b13ae8acc8b (diff) |
make the majority of the callbacks stateless and add some status to a testcase
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index f0e0b48c..60110ea8 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -1527,7 +1527,7 @@ typedef void tox_friend_connection_status_cb(Tox *tox, uint32_t friend_number, T | |||
1527 | * This callback is not called when adding friends. It is assumed that when | 1527 | * This callback is not called when adding friends. It is assumed that when |
1528 | * adding friends, their connection status is initially offline. | 1528 | * adding friends, their connection status is initially offline. |
1529 | */ | 1529 | */ |
1530 | void tox_callback_friend_connection_status(Tox *tox, tox_friend_connection_status_cb *callback, void *user_data); | 1530 | void tox_callback_friend_connection_status(Tox *tox, tox_friend_connection_status_cb *callback); |
1531 | 1531 | ||
1532 | /** | 1532 | /** |
1533 | * Check whether a friend is currently typing a message. | 1533 | * Check whether a friend is currently typing a message. |
@@ -1889,7 +1889,7 @@ typedef void tox_file_recv_control_cb(Tox *tox, uint32_t friend_number, uint32_t | |||
1889 | * This event is triggered when a file control command is received from a | 1889 | * This event is triggered when a file control command is received from a |
1890 | * friend. | 1890 | * friend. |
1891 | */ | 1891 | */ |
1892 | void tox_callback_file_recv_control(Tox *tox, tox_file_recv_control_cb *callback, void *user_data); | 1892 | void tox_callback_file_recv_control(Tox *tox, tox_file_recv_control_cb *callback); |
1893 | 1893 | ||
1894 | typedef enum TOX_ERR_FILE_SEEK { | 1894 | typedef enum TOX_ERR_FILE_SEEK { |
1895 | 1895 | ||
@@ -2193,7 +2193,7 @@ typedef void tox_file_chunk_request_cb(Tox *tox, uint32_t friend_number, uint32_ | |||
2193 | * | 2193 | * |
2194 | * This event is triggered when Core is ready to send more file data. | 2194 | * This event is triggered when Core is ready to send more file data. |
2195 | */ | 2195 | */ |
2196 | void tox_callback_file_chunk_request(Tox *tox, tox_file_chunk_request_cb *callback, void *user_data); | 2196 | void tox_callback_file_chunk_request(Tox *tox, tox_file_chunk_request_cb *callback); |
2197 | 2197 | ||
2198 | 2198 | ||
2199 | /******************************************************************************* | 2199 | /******************************************************************************* |
@@ -2231,7 +2231,7 @@ typedef void tox_file_recv_cb(Tox *tox, uint32_t friend_number, uint32_t file_nu | |||
2231 | * | 2231 | * |
2232 | * This event is triggered when a file transfer request is received. | 2232 | * This event is triggered when a file transfer request is received. |
2233 | */ | 2233 | */ |
2234 | void tox_callback_file_recv(Tox *tox, tox_file_recv_cb *callback, void *user_data); | 2234 | void tox_callback_file_recv(Tox *tox, tox_file_recv_cb *callback); |
2235 | 2235 | ||
2236 | /** | 2236 | /** |
2237 | * When length is 0, the transfer is finished and the client should release the | 2237 | * When length is 0, the transfer is finished and the client should release the |
@@ -2259,7 +2259,7 @@ typedef void tox_file_recv_chunk_cb(Tox *tox, uint32_t friend_number, uint32_t f | |||
2259 | * This event is first triggered when a file transfer request is received, and | 2259 | * This event is first triggered when a file transfer request is received, and |
2260 | * subsequently when a chunk of file data for an accepted request was received. | 2260 | * subsequently when a chunk of file data for an accepted request was received. |
2261 | */ | 2261 | */ |
2262 | void tox_callback_file_recv_chunk(Tox *tox, tox_file_recv_chunk_cb *callback, void *user_data); | 2262 | void tox_callback_file_recv_chunk(Tox *tox, tox_file_recv_chunk_cb *callback); |
2263 | 2263 | ||
2264 | 2264 | ||
2265 | /******************************************************************************* | 2265 | /******************************************************************************* |
@@ -2389,7 +2389,7 @@ typedef void tox_friend_lossy_packet_cb(Tox *tox, uint32_t friend_number, const | |||
2389 | * Set the callback for the `friend_lossy_packet` event. Pass NULL to unset. | 2389 | * Set the callback for the `friend_lossy_packet` event. Pass NULL to unset. |
2390 | * | 2390 | * |
2391 | */ | 2391 | */ |
2392 | void tox_callback_friend_lossy_packet(Tox *tox, tox_friend_lossy_packet_cb *callback, void *user_data); | 2392 | void tox_callback_friend_lossy_packet(Tox *tox, tox_friend_lossy_packet_cb *callback); |
2393 | 2393 | ||
2394 | /** | 2394 | /** |
2395 | * @param friend_number The friend number of the friend who sent the packet. | 2395 | * @param friend_number The friend number of the friend who sent the packet. |
@@ -2404,7 +2404,7 @@ typedef void tox_friend_lossless_packet_cb(Tox *tox, uint32_t friend_number, con | |||
2404 | * Set the callback for the `friend_lossless_packet` event. Pass NULL to unset. | 2404 | * Set the callback for the `friend_lossless_packet` event. Pass NULL to unset. |
2405 | * | 2405 | * |
2406 | */ | 2406 | */ |
2407 | void tox_callback_friend_lossless_packet(Tox *tox, tox_friend_lossless_packet_cb *callback, void *user_data); | 2407 | void tox_callback_friend_lossless_packet(Tox *tox, tox_friend_lossless_packet_cb *callback); |
2408 | 2408 | ||
2409 | 2409 | ||
2410 | /******************************************************************************* | 2410 | /******************************************************************************* |