summaryrefslogtreecommitdiff
path: root/toxcore/group.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-12 23:58:24 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-12 23:58:24 +0000
commit3d5fd9c2d0114e7d4bbb389e11216c425adaa216 (patch)
tree8cf9551a6f68361d01a9b813f11558c83ecf1090 /toxcore/group.h
parent2377cac94ba801f4b6363f23490dfdbcc332a8ad (diff)
Limit number of group chats to 65536.
By changing numchats from uint32_t to uint16_t. This is done in PGC. This PR is making that change in master to reduce the diff in the PGC branch. Also: * Inverted groupnumber_not_valid and renamed to is_groupnumber_valid. * Renamed realloc_groupchats to realloc_conferences and made it return bool. * Added setup_conference function that currently just zeroes the conference structure but later will initialise more values. * Made some `i` iterator variables local to the for-loop using for-init-decl. This is also done in PGC.
Diffstat (limited to 'toxcore/group.h')
-rw-r--r--toxcore/group.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/group.h b/toxcore/group.h
index 947c7035..b2a297f9 100644
--- a/toxcore/group.h
+++ b/toxcore/group.h
@@ -138,7 +138,7 @@ typedef struct Group_Chats {
138 Friend_Connections *fr_c; 138 Friend_Connections *fr_c;
139 139
140 Group_c *chats; 140 Group_c *chats;
141 uint32_t num_chats; 141 uint16_t num_chats;
142 142
143 g_conference_invite_cb *invite_callback; 143 g_conference_invite_cb *invite_callback;
144 g_conference_message_cb *message_callback; 144 g_conference_message_cb *message_callback;