diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Messenger.c | 4 | ||||
-rw-r--r-- | 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 | |||
12 | uint8_t client_id[CLIENT_ID_SIZE]; | 12 | uint8_t client_id[CLIENT_ID_SIZE]; |
13 | int crypt_connection_id; | 13 | int crypt_connection_id; |
14 | int friend_request_id; //id of the friend request corresponding to the current friend request to the current friend. | 14 | int friend_request_id; //id of the friend request corresponding to the current friend request to the current friend. |
15 | uint8_t status;//0 if no friend, 1 if added, 2 if friend request successfully sent, 3 if confirmed friend, 4 if online. | 15 | uint8_t status;//0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online. |
16 | 16 | ||
17 | }Friend; | 17 | }Friend; |
18 | 18 | ||
@@ -67,7 +67,7 @@ int m_delfriend(int friendnumber) | |||
67 | 67 | ||
68 | //return 4 if friend is online | 68 | //return 4 if friend is online |
69 | //return 3 if friend is confirmed | 69 | //return 3 if friend is confirmed |
70 | //return 2 if the friend request was sent successfully | 70 | //return 2 if the friend request was sent |
71 | //return 1 if the friend was added | 71 | //return 1 if the friend was added |
72 | //return 0 if there is no friend with that number. | 72 | //return 0 if there is no friend with that number. |
73 | int m_friendstatus(int friendnumber) | 73 | 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); | |||
27 | //remove a friend | 27 | //remove a friend |
28 | int m_delfriend(int friendnumber); | 28 | int m_delfriend(int friendnumber); |
29 | 29 | ||
30 | //return 1 if friend is online | 30 | //return 4 if friend is online |
31 | //return 0 if he is not | 31 | //return 3 if friend is confirmed |
32 | //return 2 if the friend request was sent | ||
33 | //return 1 if the friend was added | ||
34 | //return 0 if there is no friend with that number. | ||
32 | int m_friendstatus(int friendnumber); | 35 | int m_friendstatus(int friendnumber); |
33 | 36 | ||
34 | 37 | ||
35 | //send a text chat message to a friend. | 38 | //send a text chat message to an online friend. |
39 | //returns 1 if packet was successfully put into the send queue | ||
40 | //return 0 if it was not. | ||
36 | int m_sendmessage(int friendnumber, uint8_t * message, uint32_t length); | 41 | int m_sendmessage(int friendnumber, uint8_t * message, uint32_t length); |
37 | 42 | ||
38 | //set the data that will be sent along with friend requests | 43 | //set the data that will be sent along with friend requests |