diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index b39008fe..ed471542 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -280,13 +280,17 @@ TOX_USERSTATUS tox_get_selfuserstatus(Tox *tox); | |||
280 | */ | 280 | */ |
281 | void tox_set_sends_receipts(Tox *tox, int friendnumber, int yesno); | 281 | void tox_set_sends_receipts(Tox *tox, int friendnumber, int yesno); |
282 | 282 | ||
283 | /* Allocate and return a list of valid friend id's. List must be freed by the | 283 | /* Return the number of friends in the instance m. |
284 | * caller. | 284 | * You should use this to determine how much memory to allocate |
285 | * | 285 | * for copy_friendlist. */ |
286 | * retun 0 if success. | 286 | size_t tox_count_friendlist(void *tox); |
287 | * return -1 if failure. | 287 | |
288 | */ | 288 | /* Copy a list of valid friend IDs into the array out_list. |
289 | int tox_get_friendlist(void *tox, int **out_list, uint32_t *out_list_length); | 289 | * If out_list is NULL, returns -1. |
290 | * Otherwise, returns the number of elements copied. | ||
291 | * If the array was too small, the contents | ||
292 | * of out_list will be truncated to list_size. */ | ||
293 | size_t tox_copy_friendlist(void *tox, int *out_list, size_t list_size); | ||
290 | 294 | ||
291 | /* Set the function that will be executed when a friend request is received. | 295 | /* Set the function that will be executed when a friend request is received. |
292 | * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) | 296 | * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) |