Comments updated.

This commit is contained in:
irungentoo 2013-07-09 13:42:28 -04:00
parent 127fced11f
commit 803fbafc50
2 changed files with 10 additions and 5 deletions

View File

@ -12,7 +12,7 @@ typedef struct
uint8_t client_id[CLIENT_ID_SIZE];
int crypt_connection_id;
int friend_request_id; //id of the friend request corresponding to the current friend request to the current friend.
uint8_t status;//0 if no friend, 1 if added, 2 if friend request successfully sent, 3 if confirmed friend, 4 if online.
uint8_t status;//0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online.
}Friend;
@ -67,7 +67,7 @@ int m_delfriend(int friendnumber)
//return 4 if friend is online
//return 3 if friend is confirmed
//return 2 if the friend request was sent successfully
//return 2 if the friend request was sent
//return 1 if the friend was added
//return 0 if there is no friend with that number.
int m_friendstatus(int friendnumber)

View File

@ -27,12 +27,17 @@ int m_addfriend_norequest(uint8_t * client_id);
//remove a friend
int m_delfriend(int friendnumber);
//return 1 if friend is online
//return 0 if he is not
//return 4 if friend is online
//return 3 if friend is confirmed
//return 2 if the friend request was sent
//return 1 if the friend was added
//return 0 if there is no friend with that number.
int m_friendstatus(int friendnumber);
//send a text chat message to a friend.
//send a text chat message to an online friend.
//returns 1 if packet was successfully put into the send queue
//return 0 if it was not.
int m_sendmessage(int friendnumber, uint8_t * message, uint32_t length);
//set the data that will be sent along with friend requests