summaryrefslogtreecommitdiff
path: root/toxcore/ping.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-30 17:50:59 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-30 19:31:40 +0100
commitfa3b51266bdc13a6b5fafdc2518f89b03e5f084f (patch)
tree582c9e7a2ca197aab4fc90b1ec26821ae1765e30 /toxcore/ping.h
parent4692cea75e82d05c4facf97c8853819281f376cf (diff)
Add missing #includes to headers and rename tox_old to tox_group.
Also, no longer #include the group code into tox.c. Instead, compile it separately in tox_group.c. This is a bit less surprising to someone looking around the code. Having some implementations in a .h file is certainly a bit surprising to a disciplined C programmer, especially when there is no technical reason to do it.
Diffstat (limited to 'toxcore/ping.h')
-rw-r--r--toxcore/ping.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/ping.h b/toxcore/ping.h
index 904ad844..ed0caafa 100644
--- a/toxcore/ping.h
+++ b/toxcore/ping.h
@@ -24,6 +24,11 @@
24#ifndef __PING_H__ 24#ifndef __PING_H__
25#define __PING_H__ 25#define __PING_H__
26 26
27#include "DHT.h"
28#include "network.h"
29
30#include <stdint.h>
31
27typedef struct PING PING; 32typedef struct PING PING;
28 33
29/* Add nodes to the to_ping list. 34/* Add nodes to the to_ping list.