diff options
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 04e412be..f4690080 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -289,6 +289,13 @@ uint32_t tox_count_friendlist(Tox *tox) | |||
289 | return count_friendlist(m); | 289 | return count_friendlist(m); |
290 | } | 290 | } |
291 | 291 | ||
292 | /* Return the number of online friends in the instance m. */ | ||
293 | uint32_t tox_get_num_online_friends(Tox *tox) | ||
294 | { | ||
295 | Messenger *m = tox; | ||
296 | return get_num_online_friends(m); | ||
297 | } | ||
298 | |||
292 | /* Copy a list of valid friend IDs into the array out_list. | 299 | /* Copy a list of valid friend IDs into the array out_list. |
293 | * If out_list is NULL, returns 0. | 300 | * If out_list is NULL, returns 0. |
294 | * Otherwise, returns the number of elements copied. | 301 | * Otherwise, returns the number of elements copied. |