summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-03-14 03:37:28 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-03-14 13:40:36 +0000
commit94d98ddd863279d5bf811d0107d73c373380dda2 (patch)
tree543a21f95e30c86e314dce4577f99421789bba0d /toxcore/tox.c
parentcb22b3df5f0b7509a37e091360ecbb4d8a9f2873 (diff)
Standardise on having a comma at the end of enums.
Most of our enums already have one. Some didn't. Tokstyle is going to require commas at the end of enumerator lists in enum definitions.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 2099a26f..b70be7a3 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -2070,7 +2070,8 @@ Tox_Conference_Type tox_conference_get_type(const Tox *tox, uint32_t conference_
2070 return (Tox_Conference_Type)ret; 2070 return (Tox_Conference_Type)ret;
2071} 2071}
2072 2072
2073bool tox_conference_get_id(const Tox *tox, uint32_t conference_number, uint8_t *id /* TOX_CONFERENCE_ID_SIZE bytes */) 2073/* id is TOX_CONFERENCE_ID_SIZE bytes */
2074bool tox_conference_get_id(const Tox *tox, uint32_t conference_number, uint8_t *id)
2074{ 2075{
2075 lock(tox); 2076 lock(tox);
2076 bool ret = conference_get_id(tox->m->conferences_object, conference_number, id); 2077 bool ret = conference_get_id(tox->m->conferences_object, conference_number, id);
@@ -2079,7 +2080,8 @@ bool tox_conference_get_id(const Tox *tox, uint32_t conference_number, uint8_t *
2079} 2080}
2080 2081
2081// TODO(iphydf): Delete in 0.3.0. 2082// TODO(iphydf): Delete in 0.3.0.
2082bool tox_conference_get_uid(const Tox *tox, uint32_t conference_number, uint8_t *uid /* TOX_CONFERENCE_ID_SIZE bytes */) 2083/* uid is TOX_CONFERENCE_ID_SIZE bytes */
2084bool tox_conference_get_uid(const Tox *tox, uint32_t conference_number, uint8_t *uid)
2083{ 2085{
2084 return tox_conference_get_id(tox, conference_number, uid); 2086 return tox_conference_get_id(tox, conference_number, uid);
2085} 2087}