diff options
author | zugz (tox) <mbays+tox@sdf.org> | 2019-02-17 00:00:00 +0000 |
---|---|---|
committer | zugz (tox) <mbays+tox@sdf.org> | 2019-05-19 18:51:28 +0200 |
commit | 306dd1f21f25d65ffd1c289d28e4450695c83745 (patch) | |
tree | 89d91af3ef10a29ae8a8a9ead0d5d7ea15619389 /toxcore/tox.api.h | |
parent | d26b11d0c263bd796762374154edc7386dd601d4 (diff) |
add configurable limit on number of stored frozen peers
Diffstat (limited to 'toxcore/tox.api.h')
-rw-r--r-- | toxcore/tox.api.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h index 2e5c7841..51a6d639 100644 --- a/toxcore/tox.api.h +++ b/toxcore/tox.api.h | |||
@@ -2375,6 +2375,17 @@ namespace conference { | |||
2375 | } | 2375 | } |
2376 | 2376 | ||
2377 | /** | 2377 | /** |
2378 | * Set maximum number of offline peers to store, overriding the default. | ||
2379 | */ | ||
2380 | bool set_max_offline(uint32_t conference_number, uint32_t max_offline_peers) { | ||
2381 | /** | ||
2382 | * The conference number passed did not designate a valid conference. | ||
2383 | */ | ||
2384 | CONFERENCE_NOT_FOUND, | ||
2385 | } | ||
2386 | |||
2387 | |||
2388 | /** | ||
2378 | * Invites a friend to a conference. | 2389 | * Invites a friend to a conference. |
2379 | * | 2390 | * |
2380 | * We must be connected to the conference, meaning that the conference has not | 2391 | * We must be connected to the conference, meaning that the conference has not |
@@ -2806,6 +2817,7 @@ typedef TOX_ERR_FILE_SEND_CHUNK Tox_Err_File_Send_Chunk; | |||
2806 | typedef TOX_ERR_CONFERENCE_NEW Tox_Err_Conference_New; | 2817 | typedef TOX_ERR_CONFERENCE_NEW Tox_Err_Conference_New; |
2807 | typedef TOX_ERR_CONFERENCE_DELETE Tox_Err_Conference_Delete; | 2818 | typedef TOX_ERR_CONFERENCE_DELETE Tox_Err_Conference_Delete; |
2808 | typedef TOX_ERR_CONFERENCE_PEER_QUERY Tox_Err_Conference_Peer_Query; | 2819 | typedef TOX_ERR_CONFERENCE_PEER_QUERY Tox_Err_Conference_Peer_Query; |
2820 | typedef TOX_ERR_CONFERENCE_SET_MAX_OFFLINE Tox_Err_Conference_Set_Max_Offline; | ||
2809 | typedef TOX_ERR_CONFERENCE_BY_ID Tox_Err_Conference_By_Id; | 2821 | typedef TOX_ERR_CONFERENCE_BY_ID Tox_Err_Conference_By_Id; |
2810 | typedef TOX_ERR_CONFERENCE_BY_UID Tox_Err_Conference_By_Uid; | 2822 | typedef TOX_ERR_CONFERENCE_BY_UID Tox_Err_Conference_By_Uid; |
2811 | typedef TOX_ERR_CONFERENCE_INVITE Tox_Err_Conference_Invite; | 2823 | typedef TOX_ERR_CONFERENCE_INVITE Tox_Err_Conference_Invite; |