summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-26 21:20:16 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-02-27 04:30:37 +0000
commit1282ef5741c900dad5c3e9921d0b211030e8af19 (patch)
tree74883d9c56be55541b31f72c1771092ca7646cc5 /toxcore/tox.h
parent1334d16517ccaa0971301fc819b72618e060c899 (diff)
Remove deprecated conference namelist change callback.
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index cf5b2c28..41a0994e 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -2443,47 +2443,6 @@ typedef void tox_conference_peer_list_changed_cb(Tox *tox, uint32_t conference_n
2443 */ 2443 */
2444void tox_callback_conference_peer_list_changed(Tox *tox, tox_conference_peer_list_changed_cb *callback); 2444void tox_callback_conference_peer_list_changed(Tox *tox, tox_conference_peer_list_changed_cb *callback);
2445 2445
2446/**
2447 * Peer list state change types.
2448 */
2449typedef enum TOX_CONFERENCE_STATE_CHANGE {
2450
2451 /**
2452 * A peer has joined the conference.
2453 */
2454 TOX_CONFERENCE_STATE_CHANGE_PEER_JOIN,
2455
2456 /**
2457 * A peer has exited the conference.
2458 */
2459 TOX_CONFERENCE_STATE_CHANGE_PEER_EXIT,
2460
2461 /**
2462 * A peer has changed their name.
2463 */
2464 TOX_CONFERENCE_STATE_CHANGE_PEER_NAME_CHANGE,
2465
2466} TOX_CONFERENCE_STATE_CHANGE;
2467
2468
2469/**
2470 * @param conference_number The conference number of the conference the title change is intended for.
2471 * @param peer_number The ID of the peer who changed the title.
2472 * @param change The type of change (one of TOX_CONFERENCE_STATE_CHANGE).
2473 */
2474typedef void tox_conference_namelist_change_cb(Tox *tox, uint32_t conference_number, uint32_t peer_number,
2475 TOX_CONFERENCE_STATE_CHANGE change, void *user_data);
2476
2477
2478/**
2479 * Set the callback for the `conference_namelist_change` event. Pass NULL to unset.
2480 *
2481 * This event is triggered when the peer list changes (name change, peer join, peer exit).
2482 *
2483 * @deprecated Use the `conference_peer_name` and `conference_peer_list_changed` events, instead.
2484 */
2485void tox_callback_conference_namelist_change(Tox *tox, tox_conference_namelist_change_cb *callback);
2486
2487typedef enum TOX_ERR_CONFERENCE_NEW { 2446typedef enum TOX_ERR_CONFERENCE_NEW {
2488 2447
2489 /** 2448 /**