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/ping.h | |
parent | 54066f338f185f2fbd6694d9a4877f42cbfa21c8 (diff) |
Use per-instance `Mono_Time` for Messenger and onion.
Diffstat (limited to 'toxcore/ping.h')
-rw-r--r-- | toxcore/ping.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/toxcore/ping.h b/toxcore/ping.h index 61875a0b..63ecb017 100644 --- a/toxcore/ping.h +++ b/toxcore/ping.h | |||
@@ -41,12 +41,17 @@ typedef struct IP_Port IP_Port; | |||
41 | typedef struct DHT DHT; | 41 | typedef struct DHT DHT; |
42 | #endif /* DHT_DEFINED */ | 42 | #endif /* DHT_DEFINED */ |
43 | 43 | ||
44 | #ifndef MONO_TIME_DEFINED | ||
45 | #define MONO_TIME_DEFINED | ||
46 | typedef struct Mono_Time Mono_Time; | ||
47 | #endif /* MONO_TIME_DEFINED */ | ||
48 | |||
44 | #ifndef PING_DEFINED | 49 | #ifndef PING_DEFINED |
45 | #define PING_DEFINED | 50 | #define PING_DEFINED |
46 | typedef struct Ping Ping; | 51 | typedef struct Ping Ping; |
47 | #endif /* PING_DEFINED */ | 52 | #endif /* PING_DEFINED */ |
48 | 53 | ||
49 | Ping *ping_new(DHT *dht); | 54 | Ping *ping_new(const struct Mono_Time *mono_time, DHT *dht); |
50 | 55 | ||
51 | void ping_kill(Ping *ping); | 56 | void ping_kill(Ping *ping); |
52 | 57 | ||