summaryrefslogtreecommitdiff
path: root/toxcore/ping_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/ping_array.h')
-rw-r--r--toxcore/ping_array.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/ping_array.h b/toxcore/ping_array.h
index 589573c8..70c517de 100644
--- a/toxcore/ping_array.h
+++ b/toxcore/ping_array.h
@@ -39,14 +39,14 @@ struct Ping_Array *ping_array_new(uint32_t size, uint32_t timeout);
39/** 39/**
40 * Free all the allocated memory in a Ping_Array. 40 * Free all the allocated memory in a Ping_Array.
41 */ 41 */
42void ping_array_kill(struct Ping_Array *_array); 42void ping_array_kill(struct Ping_Array *array);
43 43
44/** 44/**
45 * Add a data with length to the Ping_Array list and return a ping_id. 45 * Add a data with length to the Ping_Array list and return a ping_id.
46 * 46 *
47 * @return ping_id on success, 0 on failure. 47 * @return ping_id on success, 0 on failure.
48 */ 48 */
49uint64_t ping_array_add(struct Ping_Array *_array, const struct Mono_Time *mono_time, const uint8_t *data, 49uint64_t ping_array_add(struct Ping_Array *array, const struct Mono_Time *mono_time, const uint8_t *data,
50 uint32_t length); 50 uint32_t length);
51 51
52/** 52/**
@@ -56,7 +56,7 @@ uint64_t ping_array_add(struct Ping_Array *_array, const struct Mono_Time *mono_
56 * 56 *
57 * @return length of data copied on success, -1 on failure. 57 * @return length of data copied on success, -1 on failure.
58 */ 58 */
59int32_t ping_array_check(struct Ping_Array *_array, const struct Mono_Time *mono_time, uint8_t *data, size_t length, 59int32_t ping_array_check(struct Ping_Array *array, const struct Mono_Time *mono_time, uint8_t *data, size_t length,
60 uint64_t ping_id); 60 uint64_t ping_id);
61 61
62#ifdef __cplusplus 62#ifdef __cplusplus