summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 5d3916b4..497fa3bc 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -404,6 +404,18 @@ int tox_join_groupchat(Tox *tox, int friendnumber, uint8_t *friend_group_public_
404 * return -1 on failure 404 * return -1 on failure
405 */ 405 */
406int tox_group_message_send(Tox *tox, int groupnumber, uint8_t *message, uint32_t length); 406int tox_group_message_send(Tox *tox, int groupnumber, uint8_t *message, uint32_t length);
407
408/* Return the number of chats in the instance m.
409 * You should use this to determine how much memory to allocate
410 * for copy_friendlist. */
411uint32_t tox_count_chatlist(Tox *tox);
412
413/* Copy a list of valid chat IDs into the array out_list.
414 * If out_list is NULL, returns 0.
415 * Otherwise, returns the number of elements copied.
416 * If the array was too small, the contents
417 * of out_list will be truncated to list_size. */
418uint32_t tox_copy_chatlist(Tox *tox, int *out_list, uint32_t list_size);
407 419
408 420
409/****************FILE SENDING FUNCTIONS*****************/ 421/****************FILE SENDING FUNCTIONS*****************/