diff options
author | zugz (tox) <mbays+tox@sdf.org> | 2018-10-31 19:21:00 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2019-01-05 15:01:29 +0000 |
commit | a122ee9e01a1614366350537e1b49299eb355c1d (patch) | |
tree | 71dac74aa73f90bce66b8cc9299408e0c4e52c42 /toxcore/tox.h | |
parent | ebf3a82de8709270cb46266f1c06a3c1cee0649d (diff) |
Expose offline conference peers in API
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index ee8a01cc..94ffd32a 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -2631,6 +2631,42 @@ bool tox_conference_peer_get_public_key(const Tox *tox, uint32_t conference_numb | |||
2631 | bool tox_conference_peer_number_is_ours(const Tox *tox, uint32_t conference_number, uint32_t peer_number, | 2631 | bool tox_conference_peer_number_is_ours(const Tox *tox, uint32_t conference_number, uint32_t peer_number, |
2632 | TOX_ERR_CONFERENCE_PEER_QUERY *error); | 2632 | TOX_ERR_CONFERENCE_PEER_QUERY *error); |
2633 | 2633 | ||
2634 | /** | ||
2635 | * Return the number of offline peers in the conference. Return value is unspecified on failure. | ||
2636 | */ | ||
2637 | uint32_t tox_conference_offline_peer_count(const Tox *tox, uint32_t conference_number, | ||
2638 | TOX_ERR_CONFERENCE_PEER_QUERY *error); | ||
2639 | |||
2640 | /** | ||
2641 | * Return the length of the offline peer's name. Return value is unspecified on failure. | ||
2642 | */ | ||
2643 | size_t tox_conference_offline_peer_get_name_size(const Tox *tox, uint32_t conference_number, | ||
2644 | uint32_t offline_peer_number, TOX_ERR_CONFERENCE_PEER_QUERY *error); | ||
2645 | |||
2646 | /** | ||
2647 | * Copy the name of offline_peer_number who is in conference_number to name. | ||
2648 | * name must be at least TOX_MAX_NAME_LENGTH long. | ||
2649 | * | ||
2650 | * @return true on success. | ||
2651 | */ | ||
2652 | bool tox_conference_offline_peer_get_name(const Tox *tox, uint32_t conference_number, uint32_t offline_peer_number, | ||
2653 | uint8_t *name, TOX_ERR_CONFERENCE_PEER_QUERY *error); | ||
2654 | |||
2655 | /** | ||
2656 | * Copy the public key of offline_peer_number who is in conference_number to public_key. | ||
2657 | * public_key must be TOX_PUBLIC_KEY_SIZE long. | ||
2658 | * | ||
2659 | * @return true on success. | ||
2660 | */ | ||
2661 | bool tox_conference_offline_peer_get_public_key(const Tox *tox, uint32_t conference_number, | ||
2662 | uint32_t offline_peer_number, uint8_t *public_key, TOX_ERR_CONFERENCE_PEER_QUERY *error); | ||
2663 | |||
2664 | /** | ||
2665 | * Return a unix-time timestamp of the last time offline_peer_number was seen to be active. | ||
2666 | */ | ||
2667 | uint64_t tox_conference_offline_peer_get_last_active(const Tox *tox, uint32_t conference_number, | ||
2668 | uint32_t offline_peer_number, TOX_ERR_CONFERENCE_PEER_QUERY *error); | ||
2669 | |||
2634 | typedef enum TOX_ERR_CONFERENCE_INVITE { | 2670 | typedef enum TOX_ERR_CONFERENCE_INVITE { |
2635 | 2671 | ||
2636 | /** | 2672 | /** |