diff options
author | aunsane <aunsane@gmail.com> | 2017-04-29 16:19:32 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-04-29 16:19:32 +0300 |
commit | 6ce18df93c20c16d21a75f66a0cf6d1c160ca5cd (patch) | |
tree | 7bf158eac47cd5a5aebcd2e1508307f39199c314 /protocols/Tox/include | |
parent | b89210e991e554adba6197091f99762182221de6 (diff) |
Tox: updated tox core to 0.1.8
Diffstat (limited to 'protocols/Tox/include')
-rw-r--r-- | protocols/Tox/include/tox.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/protocols/Tox/include/tox.h b/protocols/Tox/include/tox.h index 5b3725dca9..11633b7b87 100644 --- a/protocols/Tox/include/tox.h +++ b/protocols/Tox/include/tox.h @@ -180,7 +180,7 @@ uint32_t tox_version_minor(void); * The patch or revision number. Incremented when bugfixes are applied without * changing any functionality or API or ABI. */ -#define TOX_VERSION_PATCH 7 +#define TOX_VERSION_PATCH 8 uint32_t tox_version_patch(void); @@ -246,6 +246,13 @@ uint32_t tox_public_key_size(void); uint32_t tox_secret_key_size(void); /** + * The size of the nospam in bytes when written in a Tox address. + */ +#define TOX_NOSPAM_SIZE (sizeof(uint32_t)) + +uint32_t tox_nospam_size(void); + +/** * The size of a Tox address in bytes. Tox addresses are in the format * [Public Key (TOX_PUBLIC_KEY_SIZE bytes)][nospam (4 bytes)][checksum (2 bytes)]. * @@ -253,7 +260,7 @@ uint32_t tox_secret_key_size(void); * byte is an XOR of all the even bytes (0, 2, 4, ...), the second byte is an * XOR of all the odd bytes (1, 3, 5, ...) of the Public Key and nospam. */ -#define TOX_ADDRESS_SIZE (TOX_PUBLIC_KEY_SIZE + sizeof(uint32_t) + sizeof(uint16_t)) +#define TOX_ADDRESS_SIZE (TOX_PUBLIC_KEY_SIZE + TOX_NOSPAM_SIZE + sizeof(uint16_t)) uint32_t tox_address_size(void); |