diff options
Diffstat (limited to 'core/Messenger.c')
-rw-r--r-- | core/Messenger.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) | |||
71 | return -1; | 71 | return -1; |
72 | } | 72 | } |
73 | 73 | ||
74 | /* Returns number of friends */ | ||
75 | int getnumfriends() | ||
76 | { | ||
77 | return numfriends; | ||
78 | } | ||
79 | |||
74 | /* copies the public key associated to that friend id into client_id buffer. | 80 | /* copies the public key associated to that friend id into client_id buffer. |
75 | make sure that client_id is of size CLIENT_ID_SIZE. | 81 | make sure that client_id is of size CLIENT_ID_SIZE. |
76 | return 0 if success | 82 | return 0 if success |