From 803fbafc507a8a19ef83420a462632892413b7f9 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 9 Jul 2013 13:42:28 -0400 Subject: [PATCH] Comments updated. --- core/Messenger.c | 4 ++-- core/Messenger.h | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/core/Messenger.c b/core/Messenger.c index 4d484e54..57baa84c 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -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) diff --git a/core/Messenger.h b/core/Messenger.h index 7e6a0ba0..4e56b4fc 100644 --- a/core/Messenger.h +++ b/core/Messenger.h @@ -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