summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 469a1f78..ea373488 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -519,23 +519,23 @@ int tox_new_filesender(Tox *tox, int friendnumber, uint64_t filesize, uint8_t *f
519 * send_receive is 0 if we want the control packet to target a file we are currently sending, 519 * send_receive is 0 if we want the control packet to target a file we are currently sending,
520 * 1 if it targets a file we are currently receiving. 520 * 1 if it targets a file we are currently receiving.
521 * 521 *
522 * return 1 on success 522 * return 0 on success
523 * return 0 on failure 523 * return -1 on failure
524 */ 524 */
525int tox_file_sendcontrol(Tox *tox, int friendnumber, uint8_t send_receive, uint8_t filenumber, uint8_t message_id, 525int tox_file_sendcontrol(Tox *tox, int friendnumber, uint8_t send_receive, uint8_t filenumber, uint8_t message_id,
526 uint8_t *data, uint16_t length); 526 uint8_t *data, uint16_t length);
527 527
528/* Send file data. 528/* Send file data.
529 * 529 *
530 * return 1 on success 530 * return 0 on success
531 * return 0 on failure 531 * return -1 on failure
532 */ 532 */
533int tox_file_senddata(Tox *tox, int friendnumber, uint8_t filenumber, uint8_t *data, uint16_t length); 533int tox_file_senddata(Tox *tox, int friendnumber, uint8_t filenumber, uint8_t *data, uint16_t length);
534 534
535/* Returns the recommended/maximum size of the filedata you send with tox_file_senddata() 535/* Returns the recommended/maximum size of the filedata you send with tox_file_senddata()
536 * 536 *
537 * return size on success 537 * return size on success
538 * return 0 on failure (currently will never return 0) 538 * return -1 on failure (currently will never return -1)
539 */ 539 */
540int tox_filedata_size(Tox *tox, int friendnumber); 540int tox_filedata_size(Tox *tox, int friendnumber);
541 541