summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index c6ead732..aa9d8632 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -580,33 +580,33 @@ int m_msi_packet(Messenger *m, int friendnumber, uint8_t *data, uint16_t length)
580 * return allocated instance of Messenger on success. 580 * return allocated instance of Messenger on success.
581 * return 0 if there are problems. 581 * return 0 if there are problems.
582 */ 582 */
583Messenger *initMessenger(uint8_t ipv6enabled); 583Messenger *new_messenger(uint8_t ipv6enabled);
584 584
585/* Run this before closing shop 585/* Run this before closing shop
586 * Free all datastructures. 586 * Free all datastructures.
587 */ 587 */
588void cleanupMessenger(Messenger *M); 588void kill_messenger(Messenger *M);
589 589
590/* The main loop that needs to be run at least 20 times per second. */ 590/* The main loop that needs to be run at least 20 times per second. */
591void doMessenger(Messenger *m); 591void do_messenger(Messenger *m);
592 592
593/* 593/*
594 * functions to avoid excessive polling 594 * functions to avoid excessive polling
595 */ 595 */
596int waitprepareMessenger(Messenger *m, uint8_t *data, uint16_t *lenptr); 596int wait_prepare_messenger(Messenger *m, uint8_t *data, uint16_t *lenptr);
597int waitexecuteMessenger(Messenger *m, uint8_t *data, uint16_t len, uint16_t milliseconds); 597int wait_execute_messenger(Messenger *m, uint8_t *data, uint16_t len, uint16_t milliseconds);
598void waitcleanupMessenger(Messenger *m, uint8_t *data, uint16_t len); 598void wait_cleanup_messenger(Messenger *m, uint8_t *data, uint16_t len);
599 599
600/* SAVING AND LOADING FUNCTIONS: */ 600/* SAVING AND LOADING FUNCTIONS: */
601 601
602/* return size of the messenger data (for saving). */ 602/* return size of the messenger data (for saving). */
603uint32_t Messenger_size(Messenger *m); 603uint32_t messenger_size(Messenger *m);
604 604
605/* Save the messenger in data (must be allocated memory of size Messenger_size()) */ 605/* Save the messenger in data (must be allocated memory of size Messenger_size()) */
606void Messenger_save(Messenger *m, uint8_t *data); 606void messenger_save(Messenger *m, uint8_t *data);
607 607
608/* Load the messenger from data of size length. */ 608/* Load the messenger from data of size length. */
609int Messenger_load(Messenger *m, uint8_t *data, uint32_t length); 609int messenger_load(Messenger *m, uint8_t *data, uint32_t length);
610 610
611/* Return the number of friends in the instance m. 611/* Return the number of friends in the instance m.
612 * You should use this to determine how much memory to allocate 612 * You should use this to determine how much memory to allocate