summaryrefslogtreecommitdiff
path: root/toxcore/ping_array.api.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/ping_array.api.h
parent54066f338f185f2fbd6694d9a4877f42cbfa21c8 (diff)
Use per-instance `Mono_Time` for Messenger and onion.
Diffstat (limited to 'toxcore/ping_array.api.h')
-rw-r--r--toxcore/ping_array.api.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/toxcore/ping_array.api.h b/toxcore/ping_array.api.h
index 55b80570..61021e24 100644
--- a/toxcore/ping_array.api.h
+++ b/toxcore/ping_array.api.h
@@ -28,6 +28,8 @@
28#include "network.h" 28#include "network.h"
29%} 29%}
30 30
31class mono_Time { struct this; }
32
31class ping_Array { 33class ping_Array {
32 34
33struct this; 35struct this;
@@ -53,7 +55,7 @@ void kill();
53 * return ping_id on success. 55 * return ping_id on success.
54 * return 0 on failure. 56 * return 0 on failure.
55 */ 57 */
56uint64_t add(const uint8_t *data, uint32_t length); 58uint64_t add(const mono_Time::this *mono_time, const uint8_t *data, uint32_t length);
57 59
58/** 60/**
59 * Check if ping_id is valid and not timed out. 61 * Check if ping_id is valid and not timed out.
@@ -63,7 +65,7 @@ uint64_t add(const uint8_t *data, uint32_t length);
63 * return length of data copied on success. 65 * return length of data copied on success.
64 * return -1 on failure. 66 * return -1 on failure.
65 */ 67 */
66int32_t check(uint8_t[length] data, uint64_t ping_id); 68int32_t check(const mono_Time::this *mono_time, uint8_t[length] data, uint64_t ping_id);
67 69
68} 70}
69 71