summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-03-01 20:14:01 -0500
committerirungentoo <irungentoo@gmail.com>2015-03-01 20:14:01 -0500
commit680c7c2ecd1fd8b9ee4e7951f032438c1028eed6 (patch)
treebaf0d3b3f6985b51a30e37b8c64e3203e5ca87c9 /toxcore
parent8e59a826cb326e1c2cfefb775d9e0762c6ffe79b (diff)
parent2d3077904ec9360eb1f753643a16a15f0fb739c5 (diff)
Merge branch 'new_api' of https://github.com/dubslow/toxcore into new_api
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/Messenger.c2
-rw-r--r--toxcore/tox.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 17cfd182..6427d435 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1003,7 +1003,7 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, uint32_t, u
1003 * return 0 on failure 1003 * return 0 on failure
1004 */ 1004 */
1005static int file_sendrequest(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint64_t filesize, 1005static int file_sendrequest(const Messenger *m, int32_t friendnumber, uint8_t filenumber, uint64_t filesize,
1006 const uint8_t *filename, uint16_t filename_length) 1006 const uint8_t *filename, uint16_t filename_length)
1007{ 1007{
1008 if (friend_not_valid(m, friendnumber)) 1008 if (friend_not_valid(m, friendnumber))
1009 return 0; 1009 return 0;
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 2acc70ea..abae26e6 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -444,6 +444,14 @@ enum TOX_ERR_NEW {
444 */ 444 */
445 TOX_ERR_NEW_LOAD_ENCRYPTED, 445 TOX_ERR_NEW_LOAD_ENCRYPTED,
446 /** 446 /**
447 * The encrypted byte array could not be decrypted. Either the data was
448 * corrupt or the password/key was incorrect.
449 *
450 * NOTE: This error code is only set by tox_encrypted_new() and
451 * tox_encrypted_key_new(), in the toxencryptsave module.
452 */
453 TOX_ERR_NEW_LOAD_DECRYPTION_FAILED,
454 /**
447 * The data format was invalid. This can happen when loading data that was 455 * The data format was invalid. This can happen when loading data that was
448 * saved by an older version of Tox, or when the data has been corrupted. 456 * saved by an older version of Tox, or when the data has been corrupted.
449 * When loading from badly formatted data, some data may have been loaded, 457 * When loading from badly formatted data, some data may have been loaded,