summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 447a1146..c95a4fd3 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -280,6 +280,21 @@ int tox_get_self_status_message(Tox *tox, uint8_t *buf, uint32_t maxlen);
280 */ 280 */
281TOX_USERSTATUS tox_get_user_status(Tox *tox, int friendnumber); 281TOX_USERSTATUS tox_get_user_status(Tox *tox, int friendnumber);
282TOX_USERSTATUS tox_get_self_user_status(Tox *tox); 282TOX_USERSTATUS tox_get_self_user_status(Tox *tox);
283
284/* Set our typing status for a friend.
285 * You are responsible for turning it on or off.
286 *
287 * returns 0 on success.
288 * returns -1 on failure.
289 */
290int tox_set_user_is_typing(Tox *tox, int friendnumber, uint8_t is_typing);
291
292/* Get the typing status of a friend.
293 *
294 * returns 0 if friend is not typing.
295 * returns 1 if friend is typing.
296 */
297int tox_get_is_typing(Tox *tox, int friendnumber);
283 298
284/* Sets whether we send read receipts for friendnumber. 299/* Sets whether we send read receipts for friendnumber.
285 * This function is not lazy, and it will fail if yesno is not (0 or 1). 300 * This function is not lazy, and it will fail if yesno is not (0 or 1).
@@ -335,6 +350,11 @@ void tox_callback_status_message(Tox *tox, void (*function)(Tox *tox, int, uint8
335 * function(int friendnumber, USERSTATUS kind) 350 * function(int friendnumber, USERSTATUS kind)
336 */ 351 */
337void tox_callback_user_status(Tox *tox, void (*function)(Tox *tox, int, TOX_USERSTATUS, void *), void *userdata); 352void tox_callback_user_status(Tox *tox, void (*function)(Tox *tox, int, TOX_USERSTATUS, void *), void *userdata);
353
354/* Set the callback for typing changes.
355 * function (int friendnumber, int is_typing)
356 */
357void tox_callback_typing_change(Tox *tox, void (*function)(Tox *tox, int, int, void *), void *userdata);
338 358
339/* Set the callback for read receipts. 359/* Set the callback for read receipts.
340 * function(int friendnumber, uint32_t receipt) 360 * function(int friendnumber, uint32_t receipt)