diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 0597c435..75e1a303 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -128,6 +128,14 @@ TOX_USERSTATUS; | |||
128 | typedef struct Tox Tox; | 128 | typedef struct Tox Tox; |
129 | #endif | 129 | #endif |
130 | 130 | ||
131 | /* NOTE: Strings in Tox are all UTF-8, also the last byte in all strings must be NULL (0). | ||
132 | * | ||
133 | * The length when passing those strings to the core includes that NULL character. | ||
134 | * | ||
135 | * It wont do anything if you send you send non NULL terminated strings because Tox force NULL terminates them anyways | ||
136 | * when it receives them. | ||
137 | */ | ||
138 | |||
131 | /* return TOX_FRIEND_ADDRESS_SIZE byte address to give to others. | 139 | /* return TOX_FRIEND_ADDRESS_SIZE byte address to give to others. |
132 | * format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] | 140 | * format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] |
133 | */ | 141 | */ |