summaryrefslogtreecommitdiff
path: root/toxcore/group.h
diff options
context:
space:
mode:
authorzugz (tox) <mbays+tox@sdf.org>2018-09-09 23:27:39 +0200
committerzugz (tox) <mbays+tox@sdf.org>2018-11-29 21:52:23 +0100
commit9770880e975a09635a461c46c8fcc193bce57004 (patch)
tree8c7aa3c3ee8d264a3fdd97d8a5c49caa25f5da0b /toxcore/group.h
parentcaca350f435cf6a2a3778c64771dafdb7dde8b7a (diff)
Implement conferences saving
* add global friend_connection status callback, used for group rejoining * stop leaving groups on killing tox
Diffstat (limited to 'toxcore/group.h')
-rw-r--r--toxcore/group.h11
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 */
307int group_action_send(const Group_Chats *g_c, uint32_t groupnumber, const uint8_t *action, uint16_t length); 307int 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 */
313bool 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);
455uint8_t *conferences_save(const Group_Chats *g_c, uint8_t *data); 461uint8_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 */