From e920be4c01c3cb5493aab71268b763bea77e5104 Mon Sep 17 00:00:00 2001 From: Astonex Date: Tue, 30 Jul 2013 09:21:22 +0100 Subject: Fixed the friends listing --- core/Messenger.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/Messenger.c') diff --git a/core/Messenger.c b/core/Messenger.c index f77b4491..4c76dd30 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -71,6 +71,12 @@ int getfriend_id(uint8_t *client_id) return -1; } +/* Returns number of friends */ +int getnumfriends() +{ + return numfriends; +} + /* copies the public key associated to that friend id into client_id buffer. make sure that client_id is of size CLIENT_ID_SIZE. return 0 if success -- cgit v1.2.3