summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-01 23:02:13 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-16 21:01:43 +0000
commitd6d305feeb76735ee4b4e14c6bca737a5482bc19 (patch)
tree99005c635a452245006b3b5de44f1dd80da9f77f /toxcore/Messenger.h
parent54066f338f185f2fbd6694d9a4877f42cbfa21c8 (diff)
Use per-instance `Mono_Time` for Messenger and onion.
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h3
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
234struct Messenger { 234struct 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 */
741Messenger *new_messenger(Messenger_Options *options, unsigned int *error); 742Messenger *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.