summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-07 14:27:58 -0700
committerirungentoo <irungentoo@gmail.com>2013-09-07 14:27:58 -0700
commit49dd40797c74d3828b68426c947c1e3300fdf0f5 (patch)
treec8b9f4e2ee6ab7b618cebf15556981351cc38ab2 /toxcore/Messenger.h
parenteeec99723c3d9f86a904760a36e51bfcbc252717 (diff)
parentf7e14e5c6f47eca06b4a444f0da7f75750d13c59 (diff)
Merge pull request #564 from nurupo/friendstatus-patch
Removed friendstatus from client-side API, replacing it with alternative functions
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index a4c6114b..c512245c 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -202,13 +202,20 @@ int getclient_id(Messenger *m, int friend_id, uint8_t *client_id);
202/* Remove a friend. */ 202/* Remove a friend. */
203int m_delfriend(Messenger *m, int friendnumber); 203int m_delfriend(Messenger *m, int friendnumber);
204 204
205/* return 4 if friend is online. 205/* Checks friend's connecting status.
206 * return 3 if friend is confirmed. 206 *
207 * return 2 if the friend request was sent. 207 * return 1 if friend is connected to us (Online).
208 * return 1 if the friend was added. 208 * return 0 if friend is not connected to us (Offline).
209 * return 0 if there is no friend with that number. 209 * return -1 on failure.
210 */
211int m_get_friend_connectionstatus(Messenger *m, int friendnumber);
212
213/* Checks if there exists a friend with given friendnumber.
214 *
215 * return 1 if friend exists.
216 * return 0 if friend doesn't exist.
210 */ 217 */
211int m_friendstatus(Messenger *m, int friendnumber); 218int m_friend_exists(Messenger *m, int friendnumber);
212 219
213/* Send a text chat message to an online friend. 220/* Send a text chat message to an online friend.
214 * 221 *