diff options
author | zugz (tox) <mbays+tox@sdf.org> | 2018-08-02 19:23:34 +0100 |
---|---|---|
committer | zugz (tox) <mbays+tox@sdf.org> | 2018-08-12 22:46:06 +0200 |
commit | d56ab5aaff5fab7ac707a5c914d3701f43eb2ba3 (patch) | |
tree | 161278ec297d281d1c39f1f337fe67eb52865c4c /toxcore/tox.h | |
parent | 4ed6e5999226f9061f546108c5be72fe6f21a775 (diff) |
add callback for successful connection to a conference
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index badae42b..2739e1c4 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -2438,6 +2438,20 @@ typedef void tox_conference_invite_cb(Tox *tox, uint32_t friend_number, TOX_CONF | |||
2438 | void tox_callback_conference_invite(Tox *tox, tox_conference_invite_cb *callback); | 2438 | void tox_callback_conference_invite(Tox *tox, tox_conference_invite_cb *callback); |
2439 | 2439 | ||
2440 | /** | 2440 | /** |
2441 | * @param conference_number The conference number of the conference to which we have connected. | ||
2442 | */ | ||
2443 | typedef void tox_conference_connected_cb(Tox *tox, uint32_t conference_number, void *user_data); | ||
2444 | |||
2445 | |||
2446 | /** | ||
2447 | * Set the callback for the `conference_connected` event. Pass NULL to unset. | ||
2448 | * | ||
2449 | * This event is triggered when the client successfully connects to a | ||
2450 | * conference after joining it with the tox_conference_join function. | ||
2451 | */ | ||
2452 | void tox_callback_conference_connected(Tox *tox, tox_conference_connected_cb *callback); | ||
2453 | |||
2454 | /** | ||
2441 | * @param conference_number The conference number of the conference the message is intended for. | 2455 | * @param conference_number The conference number of the conference the message is intended for. |
2442 | * @param peer_number The ID of the peer who sent the message. | 2456 | * @param peer_number The ID of the peer who sent the message. |
2443 | * @param type The type of message (normal, action, ...). | 2457 | * @param type The type of message (normal, action, ...). |
@@ -2645,6 +2659,10 @@ typedef enum TOX_ERR_CONFERENCE_INVITE { | |||
2645 | /** | 2659 | /** |
2646 | * Invites a friend to a conference. | 2660 | * Invites a friend to a conference. |
2647 | * | 2661 | * |
2662 | * We must be connected to the conference, meaning that the conference has not | ||
2663 | * been deleted, and either we created the conference with the tox_conference_new function, | ||
2664 | * or a `conference_connected` event has occurred for the conference. | ||
2665 | * | ||
2648 | * @param friend_number The friend number of the friend we want to invite. | 2666 | * @param friend_number The friend number of the friend we want to invite. |
2649 | * @param conference_number The conference number of the conference we want to invite the friend to. | 2667 | * @param conference_number The conference number of the conference we want to invite the friend to. |
2650 | * | 2668 | * |