diff options
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r-- | toxcore/Messenger.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index cead6411..520fc460 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h | |||
@@ -219,6 +219,10 @@ typedef struct Messenger { | |||
219 | 219 | ||
220 | uint64_t last_LANdiscovery; | 220 | uint64_t last_LANdiscovery; |
221 | 221 | ||
222 | // Relays loaded from config | ||
223 | // 8 should be NUM_SAVED_TCP_RELAYS but it is defined in c file | ||
224 | Node_format loaded_relays[8]; | ||
225 | |||
222 | void (*friend_message)(struct Messenger *m, int32_t, const uint8_t *, uint16_t, void *); | 226 | void (*friend_message)(struct Messenger *m, int32_t, const uint8_t *, uint16_t, void *); |
223 | void *friend_message_userdata; | 227 | void *friend_message_userdata; |
224 | void (*friend_action)(struct Messenger *m, int32_t, const uint8_t *, uint16_t, void *); | 228 | void (*friend_action)(struct Messenger *m, int32_t, const uint8_t *, uint16_t, void *); |
@@ -776,6 +780,9 @@ void messenger_save(const Messenger *m, uint8_t *data); | |||
776 | /* Load the messenger from data of size length. */ | 780 | /* Load the messenger from data of size length. */ |
777 | int messenger_load(Messenger *m, const uint8_t *data, uint32_t length); | 781 | int messenger_load(Messenger *m, const uint8_t *data, uint32_t length); |
778 | 782 | ||
783 | /* Connect after loading messenger from file */ | ||
784 | int messenger_connect(Messenger *m); | ||
785 | |||
779 | /* Return the number of friends in the instance m. | 786 | /* Return the number of friends in the instance m. |
780 | * You should use this to determine how much memory to allocate | 787 | * You should use this to determine how much memory to allocate |
781 | * for copy_friendlist. */ | 788 | * for copy_friendlist. */ |