summaryrefslogtreecommitdiff
path: root/toxcore/ping.h
diff options
context:
space:
mode:
authorjin-eld <jin at mediatomb dot cc>2013-08-04 15:10:37 +0300
committerjin-eld <jin at mediatomb dot cc>2013-08-24 03:25:07 +0300
commite658892793c42b2d058eed0937025ef2ddaaa372 (patch)
tree2a022cab057f2c16ca95860ed980092880052f6e /toxcore/ping.h
parente2aa8161adc85795fe4d63d4642f47e90937ddc2 (diff)
Rename core directory because of autoconf name clash
While doing the checks configure might generate "core" files and will then try to remove them. Having a "core" directory generates an error while runing the configure script. There's no workaround but to rename the core directory.
Diffstat (limited to 'toxcore/ping.h')
-rw-r--r--toxcore/ping.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/toxcore/ping.h b/toxcore/ping.h
new file mode 100644
index 00000000..c04ec80e
--- /dev/null
+++ b/toxcore/ping.h
@@ -0,0 +1,17 @@
1/*
2 * ping.h -- Buffered pinging using cyclic arrays.
3 *
4 * This file is donated to the Tox Project.
5 * Copyright 2013 plutooo
6 */
7
8#include <stdbool.h>
9
10void *new_ping(void);
11void kill_ping(void *ping);
12uint64_t add_ping(void *ping, IP_Port ipp);
13bool is_pinging(void *ping, IP_Port ipp, uint64_t ping_id);
14int send_ping_request(void *ping, Net_Crypto *c, IP_Port ipp, clientid_t *client_id);
15int send_ping_response(Net_Crypto *c, IP_Port ipp, clientid_t *client_id, uint64_t ping_id);
16int handle_ping_request(void *object, IP_Port source, uint8_t *packet, uint32_t length);
17int handle_ping_response(void *object, IP_Port source, uint8_t *packet, uint32_t length);