Updated comments.

This commit is contained in:
irungentoo 2013-08-01 20:40:58 -04:00
parent af8e843451
commit 91216719a5

View File

@ -45,15 +45,18 @@ extern "C" {
/* don't assume MAX_USERSTATUS_LENGTH will stay at 128, it may be increased /* don't assume MAX_USERSTATUS_LENGTH will stay at 128, it may be increased
to an absurdly large number later */ to an absurdly large number later */
/* add a friend /*
set the data that will be sent along with friend request * add a friend
client_id is the client id of the friend * set the data that will be sent along with friend request
data is the data and length is the length * client_id is the client id of the friend
returns the friend number if success * data is the data and length is the length
return -1 if key length is wrong. * returns the friend number if success
return -2 if user's own key * return -1 if message length is too long
return -3 if already a friend * return -2 if no message (message length must be >= 1 byte)
return -4 for other*/ * return -3 if user's own key
* return -4 if friend request already sent or already a friend
* return -5 for unknown error
*/
int m_addfriend(uint8_t *client_id, uint8_t *data, uint16_t length); int m_addfriend(uint8_t *client_id, uint8_t *data, uint16_t length);