diff options
author | Astonex <softukitu@gmail.com> | 2013-07-30 09:21:22 +0100 |
---|---|---|
committer | Astonex <softukitu@gmail.com> | 2013-07-30 09:21:22 +0100 |
commit | e920be4c01c3cb5493aab71268b763bea77e5104 (patch) | |
tree | 522e5f1837d651ed2b2fdd51707de17f29da8205 /core/Messenger.c | |
parent | 84a0871cf6afad74441087939cec9c0e55d39961 (diff) |
Fixed the friends listing
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 |