diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-01 20:40:58 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-01 20:40:58 -0400 |
commit | 91216719a528971110975883f59f48465567ced8 (patch) | |
tree | 6271daa8e7d89ac583769553c6afdbaf9bc627b2 /core | |
parent | af8e84345171538e70e2e3562e1c51da32e306df (diff) |
Updated comments.
Diffstat (limited to 'core')
-rw-r--r-- | core/Messenger.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/core/Messenger.h b/core/Messenger.h index 9ce96fb4..3f144ff4 100644 --- a/core/Messenger.h +++ b/core/Messenger.h | |||
@@ -45,15 +45,18 @@ extern "C" { | |||
45 | /* don't assume MAX_USERSTATUS_LENGTH will stay at 128, it may be increased | 45 | /* don't assume MAX_USERSTATUS_LENGTH will stay at 128, it may be increased |
46 | to an absurdly large number later */ | 46 | to an absurdly large number later */ |
47 | 47 | ||
48 | /* add a friend | 48 | /* |
49 | set the data that will be sent along with friend request | 49 | * add a friend |
50 | client_id is the client id of the friend | 50 | * set the data that will be sent along with friend request |
51 | data is the data and length is the length | 51 | * client_id is the client id of the friend |
52 | returns the friend number if success | 52 | * data is the data and length is the length |
53 | return -1 if key length is wrong. | 53 | * returns the friend number if success |
54 | return -2 if user's own key | 54 | * return -1 if message length is too long |
55 | return -3 if already a friend | 55 | * return -2 if no message (message length must be >= 1 byte) |
56 | return -4 for other*/ | 56 | * return -3 if user's own key |
57 | * return -4 if friend request already sent or already a friend | ||
58 | * return -5 for unknown error | ||
59 | */ | ||
57 | int m_addfriend(uint8_t *client_id, uint8_t *data, uint16_t length); | 60 | int m_addfriend(uint8_t *client_id, uint8_t *data, uint16_t length); |
58 | 61 | ||
59 | 62 | ||