summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authorzugz (tox) <mbays+tox@sdf.org>2019-02-17 00:00:00 +0000
committerzugz (tox) <mbays+tox@sdf.org>2019-05-19 18:51:28 +0200
commit306dd1f21f25d65ffd1c289d28e4450695c83745 (patch)
tree89d91af3ef10a29ae8a8a9ead0d5d7ea15619389 /toxcore/tox.h
parentd26b11d0c263bd796762374154edc7386dd601d4 (diff)
add configurable limit on number of stored frozen peers
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 30ae7187..ad66305f 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -2673,6 +2673,27 @@ bool tox_conference_offline_peer_get_public_key(const Tox *tox, uint32_t confere
2673uint64_t tox_conference_offline_peer_get_last_active(const Tox *tox, uint32_t conference_number, 2673uint64_t tox_conference_offline_peer_get_last_active(const Tox *tox, uint32_t conference_number,
2674 uint32_t offline_peer_number, TOX_ERR_CONFERENCE_PEER_QUERY *error); 2674 uint32_t offline_peer_number, TOX_ERR_CONFERENCE_PEER_QUERY *error);
2675 2675
2676typedef enum TOX_ERR_CONFERENCE_SET_MAX_OFFLINE {
2677
2678 /**
2679 * The function returned successfully.
2680 */
2681 TOX_ERR_CONFERENCE_SET_MAX_OFFLINE_OK,
2682
2683 /**
2684 * The conference number passed did not designate a valid conference.
2685 */
2686 TOX_ERR_CONFERENCE_SET_MAX_OFFLINE_CONFERENCE_NOT_FOUND,
2687
2688} TOX_ERR_CONFERENCE_SET_MAX_OFFLINE;
2689
2690
2691/**
2692 * Set maximum number of offline peers to store, overriding the default.
2693 */
2694bool tox_conference_set_max_offline(Tox *tox, uint32_t conference_number, uint32_t max_offline_peers,
2695 TOX_ERR_CONFERENCE_SET_MAX_OFFLINE *error);
2696
2676typedef enum TOX_ERR_CONFERENCE_INVITE { 2697typedef enum TOX_ERR_CONFERENCE_INVITE {
2677 2698
2678 /** 2699 /**
@@ -3191,6 +3212,7 @@ typedef TOX_ERR_FILE_SEND_CHUNK Tox_Err_File_Send_Chunk;
3191typedef TOX_ERR_CONFERENCE_NEW Tox_Err_Conference_New; 3212typedef TOX_ERR_CONFERENCE_NEW Tox_Err_Conference_New;
3192typedef TOX_ERR_CONFERENCE_DELETE Tox_Err_Conference_Delete; 3213typedef TOX_ERR_CONFERENCE_DELETE Tox_Err_Conference_Delete;
3193typedef TOX_ERR_CONFERENCE_PEER_QUERY Tox_Err_Conference_Peer_Query; 3214typedef TOX_ERR_CONFERENCE_PEER_QUERY Tox_Err_Conference_Peer_Query;
3215typedef TOX_ERR_CONFERENCE_SET_MAX_OFFLINE Tox_Err_Conference_Set_Max_Offline;
3194typedef TOX_ERR_CONFERENCE_BY_ID Tox_Err_Conference_By_Id; 3216typedef TOX_ERR_CONFERENCE_BY_ID Tox_Err_Conference_By_Id;
3195typedef TOX_ERR_CONFERENCE_BY_UID Tox_Err_Conference_By_Uid; 3217typedef TOX_ERR_CONFERENCE_BY_UID Tox_Err_Conference_By_Uid;
3196typedef TOX_ERR_CONFERENCE_INVITE Tox_Err_Conference_Invite; 3218typedef TOX_ERR_CONFERENCE_INVITE Tox_Err_Conference_Invite;