summaryrefslogtreecommitdiff
path: root/core/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/Messenger.h')
-rw-r--r--core/Messenger.h21
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 */
57int m_addfriend(uint8_t *client_id, uint8_t *data, uint16_t length); 60int m_addfriend(uint8_t *client_id, uint8_t *data, uint16_t length);
58 61
59 62