mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fix type checking
This commit is contained in:
parent
c56853e623
commit
4e40978b90
|
@ -996,7 +996,7 @@ void g_callback_group_namelistchange(Group_Chats *g_c, void (*function)(Messenge
|
||||||
g_c->group_namelistchange_userdata = userdata;
|
g_c->group_namelistchange_userdata = userdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set callback funciton for title changes.
|
/* Set callback function for title changes.
|
||||||
*
|
*
|
||||||
* Function(Group_Chats *g_c, int groupnumber, int friendgroupnumber, uint8_t * title, uint8_t length, void *userdata)
|
* Function(Group_Chats *g_c, int groupnumber, int friendgroupnumber, uint8_t * title, uint8_t length, void *userdata)
|
||||||
* if friendgroupnumber == -1, then author is unknown (e.g. initial joining the group)
|
* if friendgroupnumber == -1, then author is unknown (e.g. initial joining the group)
|
||||||
|
|
|
@ -155,6 +155,14 @@ void g_callback_group_message(Group_Chats *g_c, void (*function)(Messenger *m, i
|
||||||
void g_callback_group_action(Group_Chats *g_c, void (*function)(Messenger *m, int, int, const uint8_t *, uint16_t,
|
void g_callback_group_action(Group_Chats *g_c, void (*function)(Messenger *m, int, int, const uint8_t *, uint16_t,
|
||||||
void *), void *userdata);
|
void *), void *userdata);
|
||||||
|
|
||||||
|
/* Set callback function for title changes.
|
||||||
|
*
|
||||||
|
* Function(Group_Chats *g_c, int groupnumber, int friendgroupnumber, uint8_t * title, uint8_t length, void *userdata)
|
||||||
|
* if friendgroupnumber == -1, then author is unknown (e.g. initial joining the group)
|
||||||
|
*/
|
||||||
|
void g_callback_group_title(Group_Chats *g_c, void (*function)(Messenger *m, int, int, const uint8_t *, uint8_t,
|
||||||
|
void *), void *userdata);
|
||||||
|
|
||||||
/* Set callback function for peer name list changes.
|
/* Set callback function for peer name list changes.
|
||||||
*
|
*
|
||||||
* It gets called every time the name list changes(new peer/name, deleted peer)
|
* It gets called every time the name list changes(new peer/name, deleted peer)
|
||||||
|
@ -219,6 +227,12 @@ int group_message_send(const Group_Chats *g_c, int groupnumber, const uint8_t *m
|
||||||
*/
|
*/
|
||||||
int group_action_send(const Group_Chats *g_c, int groupnumber, const uint8_t *action, uint16_t length);
|
int group_action_send(const Group_Chats *g_c, int groupnumber, const uint8_t *action, uint16_t length);
|
||||||
|
|
||||||
|
/* set the group's title, limited to MAX_NAME_LENGTH
|
||||||
|
* return 0 on success
|
||||||
|
* return -1 on failure
|
||||||
|
*/
|
||||||
|
int group_title_send(const Group_Chats *g_c, int groupnumber, const uint8_t *title, uint8_t title_len);
|
||||||
|
|
||||||
/* Return the number of peers in the group chat on success.
|
/* Return the number of peers in the group chat on success.
|
||||||
* return -1 on failure
|
* return -1 on failure
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -589,7 +589,7 @@ void tox_callback_group_action(Tox *tox, void (*function)(Messenger *tox, int, i
|
||||||
* Function(Tox *tox, int groupnumber, int peernumber, uint8_t * title, uint8_t length, void *userdata)
|
* Function(Tox *tox, int groupnumber, int peernumber, uint8_t * title, uint8_t length, void *userdata)
|
||||||
* if peernumber == -1, then author is unknown (e.g. initial joining the group)
|
* if peernumber == -1, then author is unknown (e.g. initial joining the group)
|
||||||
*/
|
*/
|
||||||
void tox_callback_group_title(Tox *tox, void (*function)(Tox *tox, int, int, const uint8_t *, uint16_t,
|
void tox_callback_group_title(Tox *tox, void (*function)(Messenger *tox, int, int, const uint8_t *, uint8_t,
|
||||||
void *), void *userdata)
|
void *), void *userdata)
|
||||||
{
|
{
|
||||||
Messenger *m = tox;
|
Messenger *m = tox;
|
||||||
|
|
|
@ -457,7 +457,7 @@ void tox_callback_group_action(Tox *tox, void (*function)(Tox *tox, int, int, co
|
||||||
* Function(Tox *tox, int groupnumber, int peernumber, uint8_t * title, uint8_t length, void *userdata)
|
* Function(Tox *tox, int groupnumber, int peernumber, uint8_t * title, uint8_t length, void *userdata)
|
||||||
* if peernumber == -1, then author is unknown (e.g. initial joining the group)
|
* if peernumber == -1, then author is unknown (e.g. initial joining the group)
|
||||||
*/
|
*/
|
||||||
void tox_callback_group_title(Tox *tox, void (*function)(Tox *tox, int, int, const uint8_t *, uint16_t,
|
void tox_callback_group_title(Tox *tox, void (*function)(Tox *tox, int, int, const uint8_t *, uint8_t,
|
||||||
void *), void *userdata);
|
void *), void *userdata);
|
||||||
|
|
||||||
/* Set callback function for peer name list changes.
|
/* Set callback function for peer name list changes.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user