summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index eb6b4f31..4fc139b1 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -1617,8 +1617,8 @@ typedef enum TOX_ERR_FILE_SEND {
1617 * number is per friend. File numbers are reused after a transfer terminates. 1617 * number is per friend. File numbers are reused after a transfer terminates.
1618 * on failure, this function returns UINT32_MAX. 1618 * on failure, this function returns UINT32_MAX.
1619 */ 1619 */
1620uint32_t tox_file_send(Tox *tox, uint32_t friend_number, TOX_FILE_KIND kind, uint64_t file_size, 1620uint32_t tox_file_send(Tox *tox, uint32_t friend_number, uint32_t kind, uint64_t file_size, const uint8_t *filename,
1621 const uint8_t *filename, size_t filename_length, TOX_ERR_FILE_SEND *error); 1621 size_t filename_length, TOX_ERR_FILE_SEND *error);
1622 1622
1623 1623
1624typedef enum TOX_ERR_FILE_SEND_CHUNK { 1624typedef enum TOX_ERR_FILE_SEND_CHUNK {
@@ -1664,11 +1664,11 @@ typedef enum TOX_ERR_FILE_SEND_CHUNK {
1664 * Send a chunk of file data to a friend. 1664 * Send a chunk of file data to a friend.
1665 * 1665 *
1666 * This function is called in response to the `file_request_chunk` callback. The 1666 * This function is called in response to the `file_request_chunk` callback. The
1667 * length parameter should be equal to the one received though the callback. 1667 * length parameter should be equal to the one received though the callback.
1668 * If it is zero, the transfer is assumed complete. For files with known size, 1668 * If it is zero, the transfer is assumed complete. For files with known size,
1669 * Core will know that the transfer is complete after the last byte has been 1669 * Core will know that the transfer is complete after the last byte has been
1670 * received, so it is not necessary (though not harmful) to send a zero-length 1670 * received, so it is not necessary (though not harmful) to send a zero-length
1671 * chunk to terminate. For streams, core will know that the transfer is finished 1671 * chunk to terminate. For streams, core will know that the transfer is finished
1672 * if a chunk with length less than the length requested in the callback is sent. 1672 * if a chunk with length less than the length requested in the callback is sent.
1673 * 1673 *
1674 * @return true on success. 1674 * @return true on success.
@@ -1731,7 +1731,7 @@ void tox_callback_file_request_chunk(Tox *tox, tox_file_request_chunk_cb *functi
1731 * @param file_number The friend-specific file number the data received is 1731 * @param file_number The friend-specific file number the data received is
1732 * associated with. 1732 * associated with.
1733 */ 1733 */
1734typedef void tox_file_receive_cb(Tox *tox, uint32_t friend_number, uint32_t file_number, TOX_FILE_KIND kind, 1734typedef void tox_file_receive_cb(Tox *tox, uint32_t friend_number, uint32_t file_number, uint32_t kind,
1735 uint64_t file_size, const uint8_t *filename, size_t filename_length, void *user_data); 1735 uint64_t file_size, const uint8_t *filename, size_t filename_length, void *user_data);
1736 1736
1737/** 1737/**