diff options
author | Jfreegman <jfreegman@gmail.com> | 2014-11-14 23:08:01 -0500 |
---|---|---|
committer | Jfreegman <jfreegman@gmail.com> | 2014-11-14 23:08:01 -0500 |
commit | 106d7f2253661aa4504609486174bc396223b067 (patch) | |
tree | 759d7423ee12f0fb5bf43390ffeb474e4429a822 /toxcore/group.h | |
parent | 2b3f107c4bfffa38416f45d516b427f42dbf630e (diff) |
add api function to get group title
Diffstat (limited to 'toxcore/group.h')
-rw-r--r-- | toxcore/group.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/toxcore/group.h b/toxcore/group.h index 775f14eb..c4a513b7 100644 --- a/toxcore/group.h +++ b/toxcore/group.h | |||
@@ -233,6 +233,15 @@ int group_action_send(const Group_Chats *g_c, int groupnumber, const uint8_t *ac | |||
233 | */ | 233 | */ |
234 | int group_title_send(const Group_Chats *g_c, int groupnumber, const uint8_t *title, uint8_t title_len); | 234 | int group_title_send(const Group_Chats *g_c, int groupnumber, const uint8_t *title, uint8_t title_len); |
235 | 235 | ||
236 | |||
237 | /* Get group title from groupnumber and put it in title. | ||
238 | * title needs to be a valid memory location with a size of at least MAX_NAME_LENGTH (128) bytes. | ||
239 | * | ||
240 | * return length of title if success. | ||
241 | * return -1 if failure. | ||
242 | */ | ||
243 | int group_title_get(const Group_Chats *g_c, int groupnumber, uint8_t *title); | ||
244 | |||
236 | /* Return the number of peers in the group chat on success. | 245 | /* Return the number of peers in the group chat on success. |
237 | * return -1 on failure | 246 | * return -1 on failure |
238 | */ | 247 | */ |