summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index fedc2c8a..08727d2a 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -366,10 +366,15 @@ void tox_callback_group_message(Tox *tox, void (*function)(Tox *tox, int, int, u
366/* Set callback function for peer name list changes. 366/* Set callback function for peer name list changes.
367 * 367 *
368 * It gets called every time the name list changes(new peer/name, deleted peer) 368 * It gets called every time the name list changes(new peer/name, deleted peer)
369 * Function(Tox *tox, int groupnumber, void *userdata) 369 * Function(Tox *tox, int groupnumber, int peernumber, TOX_CHAT_CHANGE change, void *userdata)
370 */ 370 */
371typedef enum {
372 TOX_CHAT_CHANGE_PEER_ADD,
373 TOX_CHAT_CHANGE_PEER_DEL,
374 TOX_CHAT_CHANGE_PEER_NAME,
375} TOX_CHAT_CHANGE;
371 376
372void tox_callback_group_namelistchange(Tox *tox, void (*function)(Tox *tox, int, void *), void *userdata); 377void tox_callback_group_namelistchange(Tox *tox, void (*function)(Tox *tox, int, int, uint8_t, void *), void *userdata);
373 378
374/* Creates a new groupchat and puts it in the chats array. 379/* Creates a new groupchat and puts it in the chats array.
375 * 380 *