diff options
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r-- | toxcore/Messenger.h | 18 |
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 | */ |
583 | Messenger *initMessenger(uint8_t ipv6enabled); | 583 | Messenger *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 | */ |
588 | void cleanupMessenger(Messenger *M); | 588 | void 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. */ |
591 | void doMessenger(Messenger *m); | 591 | void do_messenger(Messenger *m); |
592 | 592 | ||
593 | /* | 593 | /* |
594 | * functions to avoid excessive polling | 594 | * functions to avoid excessive polling |
595 | */ | 595 | */ |
596 | int waitprepareMessenger(Messenger *m, uint8_t *data, uint16_t *lenptr); | 596 | int wait_prepare_messenger(Messenger *m, uint8_t *data, uint16_t *lenptr); |
597 | int waitexecuteMessenger(Messenger *m, uint8_t *data, uint16_t len, uint16_t milliseconds); | 597 | int wait_execute_messenger(Messenger *m, uint8_t *data, uint16_t len, uint16_t milliseconds); |
598 | void waitcleanupMessenger(Messenger *m, uint8_t *data, uint16_t len); | 598 | void 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). */ |
603 | uint32_t Messenger_size(Messenger *m); | 603 | uint32_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()) */ |
606 | void Messenger_save(Messenger *m, uint8_t *data); | 606 | void 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. */ |
609 | int Messenger_load(Messenger *m, uint8_t *data, uint32_t length); | 609 | int 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 |