summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index 10ac0eae..3b99b3cf 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -633,5 +633,17 @@ uint32_t copy_friendlist(Messenger *m, int *out_list, uint32_t list_size);
633 */ 633 */
634int get_friendlist(Messenger *m, int **out_list, uint32_t *out_list_length); 634int get_friendlist(Messenger *m, int **out_list, uint32_t *out_list_length);
635 635
636/* Return the number of chats in the instance m.
637 * You should use this to determine how much memory to allocate
638 * for copy_chatlist. */
639uint32_t count_chatlist(Messenger *m);
640
641/* Copy a list of valid chat IDs into the array out_list.
642 * If out_list is NULL, returns 0.
643 * Otherwise, returns the number of elements copied.
644 * If the array was too small, the contents
645 * of out_list will be truncated to list_size. */
646uint32_t copy_chatlist(Messenger *m, int *out_list, uint32_t list_size);
647
636#endif 648#endif
637 649