summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index e09b2f30..40e857d1 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -178,6 +178,7 @@ typedef struct Messenger {
178 178
179 Friend *friendlist; 179 Friend *friendlist;
180 uint32_t numfriends; 180 uint32_t numfriends;
181 uint32_t numonline_friends;
181 182
182 Group_Chat **chats; 183 Group_Chat **chats;
183 uint32_t numchats; 184 uint32_t numchats;
@@ -682,6 +683,9 @@ int messenger_load_encrypted(Messenger *m, uint8_t *data, uint32_t length, uint8
682 * for copy_friendlist. */ 683 * for copy_friendlist. */
683uint32_t count_friendlist(Messenger *m); 684uint32_t count_friendlist(Messenger *m);
684 685
686/* Return the number of online friends in the instance m. */
687uint32_t get_num_online_friends(Messenger *m);
688
685/* Copy a list of valid friend IDs into the array out_list. 689/* Copy a list of valid friend IDs into the array out_list.
686 * If out_list is NULL, returns 0. 690 * If out_list is NULL, returns 0.
687 * Otherwise, returns the number of elements copied. 691 * Otherwise, returns the number of elements copied.