diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 84ba293a..4f93e608 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -417,14 +417,26 @@ int tox_send_lossless_packet(const Tox *tox, int32_t friendnumber, const uint8_t | |||
417 | 417 | ||
418 | /**********GROUP CHAT FUNCTIONS: WARNING Group chats will be rewritten so this might change ************/ | 418 | /**********GROUP CHAT FUNCTIONS: WARNING Group chats will be rewritten so this might change ************/ |
419 | 419 | ||
420 | /* Group chat types for tox_callback_group_invite function. | ||
421 | * | ||
422 | * TOX_GROUPCHAT_TYPE_TEXT groupchats must be accepted with the tox_join_groupchat() function. | ||
423 | * The function to accept TOX_GROUPCHAT_TYPE_AV is in toxav. | ||
424 | */ | ||
425 | enum { | ||
426 | TOX_GROUPCHAT_TYPE_TEXT, | ||
427 | TOX_GROUPCHAT_TYPE_AV | ||
428 | }; | ||
429 | |||
420 | /* Set the callback for group invites. | 430 | /* Set the callback for group invites. |
421 | * | 431 | * |
422 | * Function(Tox *tox, int32_t friendnumber, const uint8_t *data, uint16_t length, void *userdata) | 432 | * Function(Tox *tox, int32_t friendnumber, uint8_t type, uint8_t *data, uint16_t length, void *userdata) |
423 | * | 433 | * |
424 | * data of length is what needs to be passed to join_groupchat(). | 434 | * data of length is what needs to be passed to join_groupchat(). |
435 | * | ||
436 | * for what type means see the enum right above this comment. | ||
425 | */ | 437 | */ |
426 | void tox_callback_group_invite(Tox *tox, void (*function)(Tox *tox, int32_t, const uint8_t *, uint16_t, void *), | 438 | void tox_callback_group_invite(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t, const uint8_t *, uint16_t, |
427 | void *userdata); | 439 | void *), void *userdata); |
428 | 440 | ||
429 | /* Set the callback for group messages. | 441 | /* Set the callback for group messages. |
430 | * | 442 | * |