From e658892793c42b2d058eed0937025ef2ddaaa372 Mon Sep 17 00:00:00 2001 From: jin-eld Date: Sun, 4 Aug 2013 15:10:37 +0300 Subject: 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. --- toxcore/ping.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 toxcore/ping.h (limited to 'toxcore/ping.h') 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 @@ +/* + * ping.h -- Buffered pinging using cyclic arrays. + * + * This file is donated to the Tox Project. + * Copyright 2013 plutooo + */ + +#include + +void *new_ping(void); +void kill_ping(void *ping); +uint64_t add_ping(void *ping, IP_Port ipp); +bool is_pinging(void *ping, IP_Port ipp, uint64_t ping_id); +int send_ping_request(void *ping, Net_Crypto *c, IP_Port ipp, clientid_t *client_id); +int send_ping_response(Net_Crypto *c, IP_Port ipp, clientid_t *client_id, uint64_t ping_id); +int handle_ping_request(void *object, IP_Port source, uint8_t *packet, uint32_t length); +int handle_ping_response(void *object, IP_Port source, uint8_t *packet, uint32_t length); -- cgit v1.2.3