summaryrefslogtreecommitdiff
path: root/toxcore/DHT.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-14 01:06:49 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-14 19:30:05 +0000
commitd79b15c52daf82748040f41f93fa6e046efdeee7 (patch)
tree9d2e84a4616c17a91b9f48dcf7731e9dcd816571 /toxcore/DHT.h
parent1eea3f0ab6fbccac3f276b7db7101ed57e6986ba (diff)
Use apidsl to generate ping.h.
The ping.api.h file looks rather ugly, but it works. This is an exercise in finding the complete set of use cases needed from apidsl for toxcore. We'll try to make things work as much as possible, and then make apidsl better and make the .api.h files pretty.
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r--toxcore/DHT.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index dae6ea31..624bc690 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -225,7 +225,8 @@ typedef struct {
225 void *object; 225 void *object;
226} Cryptopacket_Handles; 226} Cryptopacket_Handles;
227 227
228typedef struct { 228#define DHT_DEFINED
229typedef struct DHT {
229 Logger *log; 230 Logger *log;
230 Networking_Core *net; 231 Networking_Core *net;
231 232
@@ -251,7 +252,7 @@ typedef struct {
251 Shared_Keys shared_keys_recv; 252 Shared_Keys shared_keys_recv;
252 Shared_Keys shared_keys_sent; 253 Shared_Keys shared_keys_sent;
253 254
254 struct PING *ping; 255 struct Ping *ping;
255 Ping_Array *dht_ping_array; 256 Ping_Array *dht_ping_array;
256 Ping_Array *dht_harden_ping_array; 257 Ping_Array *dht_harden_ping_array;
257 uint64_t last_run; 258 uint64_t last_run;