diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2013-09-07 16:05:16 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2013-09-07 16:05:16 -0400 |
commit | f5bf85240045b46a101814caeecc0471b77f06f1 (patch) | |
tree | fe9a46245c2fd711f514e3bc40687063a1f49e39 /toxcore/tox.h | |
parent | eeec99723c3d9f86a904760a36e51bfcbc252717 (diff) |
Removed friendstatus from client API
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 718f817b..811e798b 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -50,15 +50,6 @@ typedef struct { | |||
50 | uint16_t padding; | 50 | uint16_t padding; |
51 | } tox_IP_Port; | 51 | } tox_IP_Port; |
52 | 52 | ||
53 | /* Status definitions. */ | ||
54 | enum { | ||
55 | TOX_NOFRIEND, | ||
56 | TOX_FRIEND_ADDED, | ||
57 | TOX_FRIEND_REQUESTED, | ||
58 | TOX_FRIEND_CONFIRMED, | ||
59 | TOX_FRIEND_ONLINE, | ||
60 | }; | ||
61 | |||
62 | /* Errors for m_addfriend | 53 | /* Errors for m_addfriend |
63 | * FAERR - Friend Add Error | 54 | * FAERR - Friend Add Error |
64 | */ | 55 | */ |
@@ -130,13 +121,20 @@ int tox_getclient_id(Tox *tox, int friend_id, uint8_t *client_id); | |||
130 | /* Remove a friend. */ | 121 | /* Remove a friend. */ |
131 | int tox_delfriend(Tox *tox, int friendnumber); | 122 | int tox_delfriend(Tox *tox, int friendnumber); |
132 | 123 | ||
133 | /* return TOX_FRIEND_ONLINE if friend is online. | 124 | /* Checks friend's connecting status. |
134 | * return TOX_FRIEND_CONFIRMED if friend is confirmed. | 125 | * |
135 | * return TOX_FRIEND_REQUESTED if the friend request was sent. | 126 | * return 1 if friend is connected to us (Online). |
136 | * return TOX_FRIEND_ADDED if the friend was added. | 127 | * return 0 if friend is not connected to us (Offline). |
137 | * return TOX_NOFRIEND if there is no friend with that number. | 128 | * return -1 on failure. |
129 | */ | ||
130 | int tox_get_friend_connectionstatus(Tox *tox, int friendnumber); | ||
131 | |||
132 | /* Checks if there exists a friend with given friendnumber. | ||
133 | * | ||
134 | * return 1 if friend exists. | ||
135 | * return 0 if friend doesn't exist. | ||
138 | */ | 136 | */ |
139 | int tox_friendstatus(Tox *tox, int friendnumber); | 137 | int tox_friend_exists(Tox *tox, int friendnumber); |
140 | 138 | ||
141 | /* Send a text chat message to an online friend. | 139 | /* Send a text chat message to an online friend. |
142 | * | 140 | * |