diff options
author | zugz (tox) <mbays+tox@sdf.org> | 2019-04-28 00:00:02 +0000 |
---|---|---|
committer | zugz (tox) <mbays+tox@sdf.org> | 2020-03-15 00:00:27 +0000 |
commit | 52655b0c1b8b32ce373498391df868d39a1e2834 (patch) | |
tree | 09721aadda1bd225fccf3049a07a849881d8147f /toxav | |
parent | 8795c5f987e2bd716d59a96418f1c7f6f9e83839 (diff) |
clean groups code
* make static functions return bool rather than int to indicate success
* add peer_in_list() to factor out uniformity over peer and frozen lists
* reduce repetition in send_lossy_all_close
* rename 'close' to 'connections'
* use uint32_t for peernumber (in accord with tox.c)
* explain persistence in tox_conference_get_chatlist documentation
* clarify "connectedness" in group API documentation
* clarify that tox_conference_peer_count counts only online peers
* refactor variously
Diffstat (limited to 'toxav')
-rw-r--r-- | toxav/groupav.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxav/groupav.h b/toxav/groupav.h index 42c230a8..32304a2b 100644 --- a/toxav/groupav.h +++ b/toxav/groupav.h | |||
@@ -19,7 +19,7 @@ | |||
19 | typedef void audio_data_cb(void *tox, uint32_t groupnumber, uint32_t peernumber, const int16_t *pcm, | 19 | typedef void audio_data_cb(void *tox, uint32_t groupnumber, uint32_t peernumber, const int16_t *pcm, |
20 | uint32_t samples, uint8_t channels, uint32_t sample_rate, void *userdata); | 20 | uint32_t samples, uint8_t channels, uint32_t sample_rate, void *userdata); |
21 | 21 | ||
22 | /* Create a new toxav group. | 22 | /* Create and connect to a new toxav group. |
23 | * | 23 | * |
24 | * return group number on success. | 24 | * return group number on success. |
25 | * return -1 on failure. | 25 | * return -1 on failure. |