diff options
Diffstat (limited to 'toxcore/ping_array.api.h')
-rw-r--r-- | toxcore/ping_array.api.h | 6 |
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 | ||
31 | class mono_Time { struct this; } | ||
32 | |||
31 | class ping_Array { | 33 | class ping_Array { |
32 | 34 | ||
33 | struct this; | 35 | struct 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 | */ |
56 | uint64_t add(const uint8_t *data, uint32_t length); | 58 | uint64_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 | */ |
66 | int32_t check(uint8_t[length] data, uint64_t ping_id); | 68 | int32_t check(const mono_Time::this *mono_time, uint8_t[length] data, uint64_t ping_id); |
67 | 69 | ||
68 | } | 70 | } |
69 | 71 | ||