diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 1c84c1cb..41f868dd 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -98,9 +98,9 @@ typedef struct Tox Tox; | |||
98 | #endif | 98 | #endif |
99 | 99 | ||
100 | /* NOTE: Strings in Tox are all UTF-8, (This means that there is no terminating NULL character.) | 100 | /* NOTE: Strings in Tox are all UTF-8, (This means that there is no terminating NULL character.) |
101 | * | 101 | * |
102 | * The exact buffer you send will be received at the other end without modification. | 102 | * The exact buffer you send will be received at the other end without modification. |
103 | * | 103 | * |
104 | * Do not treat Tox strings as C strings. | 104 | * Do not treat Tox strings as C strings. |
105 | */ | 105 | */ |
106 | 106 | ||
@@ -228,7 +228,6 @@ int tox_get_name_size(Tox *tox, int32_t friendnumber); | |||
228 | int tox_get_self_name_size(Tox *tox); | 228 | int tox_get_self_name_size(Tox *tox); |
229 | 229 | ||
230 | /* Set our user status. | 230 | /* Set our user status. |
231 | * You are responsible for freeing status after. | ||
232 | * | 231 | * |
233 | * userstatus must be one of TOX_USERSTATUS values. | 232 | * userstatus must be one of TOX_USERSTATUS values. |
234 | * | 233 | * |
@@ -300,7 +299,8 @@ uint32_t tox_get_friendlist(Tox *tox, int32_t *out_list, uint32_t list_size); | |||
300 | /* Set the function that will be executed when a friend request is received. | 299 | /* Set the function that will be executed when a friend request is received. |
301 | * Function format is function(Tox *tox, uint8_t * public_key, uint8_t * data, uint16_t length, void *userdata) | 300 | * Function format is function(Tox *tox, uint8_t * public_key, uint8_t * data, uint16_t length, void *userdata) |
302 | */ | 301 | */ |
303 | void tox_callback_friend_request(Tox *tox, void (*function)(uint8_t *, uint8_t *, uint16_t, void *), void *userdata); | 302 | void tox_callback_friend_request(Tox *tox, void (*function)(Tox *tox, uint8_t *, uint8_t *, uint16_t, void *), |
303 | void *userdata); | ||
304 | 304 | ||
305 | /* Set the function that will be executed when a message from a friend is received. | 305 | /* Set the function that will be executed when a message from a friend is received. |
306 | * Function format is: function(Tox *tox, int friendnumber, uint8_t * message, uint32_t length, void *userdata) | 306 | * Function format is: function(Tox *tox, int friendnumber, uint8_t * message, uint32_t length, void *userdata) |