diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-08-01 23:02:13 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-08-16 21:01:43 +0000 |
commit | d6d305feeb76735ee4b4e14c6bca737a5482bc19 (patch) | |
tree | 99005c635a452245006b3b5de44f1dd80da9f77f /toxcore/Messenger.h | |
parent | 54066f338f185f2fbd6694d9a4877f42cbfa21c8 (diff) |
Use per-instance `Mono_Time` for Messenger and onion.
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r-- | toxcore/Messenger.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index 6fc4df02..0bb230cf 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h | |||
@@ -233,6 +233,7 @@ typedef struct Friend { | |||
233 | 233 | ||
234 | struct Messenger { | 234 | struct Messenger { |
235 | Logger *log; | 235 | Logger *log; |
236 | Mono_Time *mono_time; | ||
236 | 237 | ||
237 | Networking_Core *net; | 238 | Networking_Core *net; |
238 | Net_Crypto *net_crypto; | 239 | Net_Crypto *net_crypto; |
@@ -738,7 +739,7 @@ typedef enum Messenger_Error { | |||
738 | * | 739 | * |
739 | * if error is not NULL it will be set to one of the values in the enum above. | 740 | * if error is not NULL it will be set to one of the values in the enum above. |
740 | */ | 741 | */ |
741 | Messenger *new_messenger(Messenger_Options *options, unsigned int *error); | 742 | Messenger *new_messenger(Mono_Time *mono_time, Messenger_Options *options, unsigned int *error); |
742 | 743 | ||
743 | /* Run this before closing shop | 744 | /* Run this before closing shop |
744 | * Free all datastructures. | 745 | * Free all datastructures. |