summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index 5215f989..ae80760f 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -271,6 +271,10 @@ struct Messenger {
271 void (*lossless_packethandler)(struct Messenger *m, uint32_t, const uint8_t *, size_t, void *); 271 void (*lossless_packethandler)(struct Messenger *m, uint32_t, const uint8_t *, size_t, void *);
272 void *lossless_packethandler_userdata; 272 void *lossless_packethandler_userdata;
273 273
274 void (*core_connection_change)(struct Messenger *m, unsigned int, void *);
275 void *core_connection_change_userdata;
276 unsigned int last_connection_status;
277
274 Messenger_Options options; 278 Messenger_Options options;
275}; 279};
276 280
@@ -543,6 +547,11 @@ void m_callback_connectionstatus_internal_av(Messenger *m, void (*function)(Mess
543 void *userdata); 547 void *userdata);
544 548
545 549
550/* Set the callback for typing changes.
551 * Function(unsigned int connection_status (0 = not connected, 1 = TCP only, 2 = UDP + TCP))
552 */
553void m_callback_core_connection(Messenger *m, void (*function)(Messenger *m, unsigned int, void *), void *userdata);
554
546/**********GROUP CHATS************/ 555/**********GROUP CHATS************/
547 556
548/* Set the callback for group invites. 557/* Set the callback for group invites.