diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-13 15:10:51 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-13 15:10:51 -0700 |
commit | 3a95d5da41a0b1f77180dc71871df454d900fd61 (patch) | |
tree | 7ee5f682fc5130bebc757d8d7650bc19fb4e0329 /core/Messenger.h | |
parent | d63d63de9b17afaa5896929d00fbc1ba04e52491 (diff) | |
parent | c2fb803ad5d3fdfeebd3fa2d61cb2cc3d68d2930 (diff) |
Merge pull request #33 from nurupo/master
Added conversion from friend_id to client_id
Diffstat (limited to 'core/Messenger.h')
-rw-r--r-- | core/Messenger.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Messenger.h b/core/Messenger.h index d7e101b2..679df989 100644 --- a/core/Messenger.h +++ b/core/Messenger.h | |||
@@ -49,6 +49,12 @@ int m_addfriend_norequest(uint8_t * client_id); | |||
49 | //return -1 if no such friend | 49 | //return -1 if no such friend |
50 | int getfriend_id(uint8_t * client_id); | 50 | int getfriend_id(uint8_t * client_id); |
51 | 51 | ||
52 | //copies the public key associated to that friend id into client_id buffer. | ||
53 | //make sure that client_id is of size CLIENT_ID_SIZE. | ||
54 | //returns 0 if success | ||
55 | //return -1 if failure. | ||
56 | int getclient_id(int friend_id, uint8_t * client_id) | ||
57 | |||
52 | //remove a friend | 58 | //remove a friend |
53 | int m_delfriend(int friendnumber); | 59 | int m_delfriend(int friendnumber); |
54 | 60 | ||