/* Send a file send request. * Maximum filename length is 255 bytes. * return file number on success * return -1 on failure */ int tox_new_file_sender(Tox *tox, int32_t friendnumber, uint64_t filesize, const uint8_t *filename, uint16_t filename_length) { Messenger *m = tox; return new_filesender(m, friendnumber, filesize, filename, filename_length); }
/* Send a file send request. * Maximum filename length is 255 bytes. * return file number on success * return -1 on failure */ int tox_new_file_sender(Tox *tox, int friendnumber, size_t filesize, size_t *filename, size_t filename_length) { Messenger *m = tox; return new_filesender(m, friendnumber, filesize, filename, filename_length); }