diff options
Diffstat (limited to 'toxcore/group.h')
-rw-r--r-- | toxcore/group.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/toxcore/group.h b/toxcore/group.h index 8673abdb..148de0c1 100644 --- a/toxcore/group.h +++ b/toxcore/group.h | |||
@@ -306,6 +306,12 @@ int group_message_send(const Group_Chats *g_c, uint32_t groupnumber, const uint8 | |||
306 | */ | 306 | */ |
307 | int group_action_send(const Group_Chats *g_c, uint32_t groupnumber, const uint8_t *action, uint16_t length); | 307 | int group_action_send(const Group_Chats *g_c, uint32_t groupnumber, const uint8_t *action, uint16_t length); |
308 | 308 | ||
309 | /* send message to announce leaving group | ||
310 | * return true on success | ||
311 | * return false on failure | ||
312 | */ | ||
313 | bool group_leave(const Group_Chats *g_c, uint32_t groupnumber); | ||
314 | |||
309 | /* set the group's title, limited to MAX_NAME_LENGTH | 315 | /* set the group's title, limited to MAX_NAME_LENGTH |
310 | * return 0 on success | 316 | * return 0 on success |
311 | * return -1 if groupnumber is invalid. | 317 | * return -1 if groupnumber is invalid. |
@@ -455,8 +461,11 @@ uint32_t conferences_size(const Group_Chats *g_c); | |||
455 | uint8_t *conferences_save(const Group_Chats *g_c, uint8_t *data); | 461 | uint8_t *conferences_save(const Group_Chats *g_c, uint8_t *data); |
456 | 462 | ||
457 | /** | 463 | /** |
458 | * Load a section. | 464 | * Load a state section. |
459 | * | 465 | * |
466 | * @param data Data to load | ||
467 | * @param length Length of data | ||
468 | * @param type Type of section (STATE_TYPE_*) | ||
460 | * @param status Result of loading section is stored here if the section is handled. | 469 | * @param status Result of loading section is stored here if the section is handled. |
461 | * @return true iff section handled. | 470 | * @return true iff section handled. |
462 | */ | 471 | */ |