diff options
Diffstat (limited to 'toxcore/group.c')
-rw-r--r-- | toxcore/group.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/toxcore/group.c b/toxcore/group.c index fd7b2ac4..3b9c7f40 100644 --- a/toxcore/group.c +++ b/toxcore/group.c | |||
@@ -1131,7 +1131,7 @@ static void remove_conn_reason(Group_Chats *g_c, uint32_t groupnumber, uint16_t | |||
1131 | 1131 | ||
1132 | /* Creates a new groupchat and puts it in the chats array. | 1132 | /* Creates a new groupchat and puts it in the chats array. |
1133 | * | 1133 | * |
1134 | * type is one of GROUPCHAT_TYPE_* | 1134 | * type is one of `GROUPCHAT_TYPE_*` |
1135 | * | 1135 | * |
1136 | * return group number on success. | 1136 | * return group number on success. |
1137 | * return -1 on failure. | 1137 | * return -1 on failure. |
@@ -1334,9 +1334,9 @@ int group_set_max_frozen(const Group_Chats *g_c, uint32_t groupnumber, uint32_t | |||
1334 | 1334 | ||
1335 | /* List all the (frozen, if frozen is true) peers in the group chat. | 1335 | /* List all the (frozen, if frozen is true) peers in the group chat. |
1336 | * | 1336 | * |
1337 | * Copies the names of the peers to the name[length][MAX_NAME_LENGTH] array. | 1337 | * Copies the names of the peers to the `name[length][MAX_NAME_LENGTH]` array. |
1338 | * | 1338 | * |
1339 | * Copies the lengths of the names to lengths[length] | 1339 | * Copies the lengths of the names to `lengths[length]` |
1340 | * | 1340 | * |
1341 | * returns the number of peers on success. | 1341 | * returns the number of peers on success. |
1342 | * | 1342 | * |
@@ -1418,11 +1418,11 @@ int group_get_type(const Group_Chats *g_c, uint32_t groupnumber) | |||
1418 | return g->type; | 1418 | return g->type; |
1419 | } | 1419 | } |
1420 | 1420 | ||
1421 | /* Copies the unique id of group_chat[groupnumber] into id. | 1421 | /* Copies the unique id of `group_chat[groupnumber]` into `id`. |
1422 | * | 1422 | * |
1423 | * return false on failure. | 1423 | * return false on failure. |
1424 | * return true on success. | 1424 | * return true on success. |
1425 | */ | 1425 | */ |
1426 | bool conference_get_id(const Group_Chats *g_c, uint32_t groupnumber, uint8_t *id) | 1426 | bool conference_get_id(const Group_Chats *g_c, uint32_t groupnumber, uint8_t *id) |
1427 | { | 1427 | { |
1428 | const Group_c *g = get_group_c(g_c, groupnumber); | 1428 | const Group_c *g = get_group_c(g_c, groupnumber); |
@@ -2018,7 +2018,7 @@ static void handle_friend_invite_packet(Messenger *m, uint32_t friendnumber, con | |||
2018 | } | 2018 | } |
2019 | } | 2019 | } |
2020 | 2020 | ||
2021 | /* Find index of friend in the close list; | 2021 | /* Find index of friend in the close list. |
2022 | * | 2022 | * |
2023 | * returns index on success | 2023 | * returns index on success |
2024 | * returns -1 on failure. | 2024 | * returns -1 on failure. |
@@ -2621,7 +2621,7 @@ static Message_Info *find_message_slot_or_reject(uint32_t message_number, uint8_ | |||
2621 | 2621 | ||
2622 | /* Stores message info in peer->last_message_infos. | 2622 | /* Stores message info in peer->last_message_infos. |
2623 | * | 2623 | * |
2624 | * return true if message should be processed; | 2624 | * return true if message should be processed. |
2625 | * return false otherwise. | 2625 | * return false otherwise. |
2626 | */ | 2626 | */ |
2627 | static bool check_message_info(uint32_t message_number, uint8_t message_id, Group_Peer *peer) | 2627 | static bool check_message_info(uint32_t message_number, uint8_t message_id, Group_Peer *peer) |
@@ -3194,7 +3194,7 @@ static uint32_t saved_conf_size(const Group_c *g) | |||
3194 | return len; | 3194 | return len; |
3195 | } | 3195 | } |
3196 | 3196 | ||
3197 | /* Save a future message number; the save will remain valid until we have sent | 3197 | /* Save a future message number. The save will remain valid until we have sent |
3198 | * this many more messages. */ | 3198 | * this many more messages. */ |
3199 | #define SAVE_OFFSET_MESSAGE_NUMBER (1 << 16) | 3199 | #define SAVE_OFFSET_MESSAGE_NUMBER (1 << 16) |
3200 | #define SAVE_OFFSET_LOSSY_MESSAGE_NUMBER (1 << 13) | 3200 | #define SAVE_OFFSET_LOSSY_MESSAGE_NUMBER (1 << 13) |