From 93b34ef9e3b4ad44b9f387b112d168b2db55b8a3 Mon Sep 17 00:00:00 2001 From: Aaron Lipinski Date: Sun, 11 Aug 2013 14:55:57 +1200 Subject: move client data struct to header file --- core/DHT.c | 11 ----------- core/DHT.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/DHT.c b/core/DHT.c index 057ee9ce..cf0b396c 100644 --- a/core/DHT.c +++ b/core/DHT.c @@ -63,17 +63,6 @@ /*----------------------------------------------------------------------------------*/ -typedef struct { - uint8_t client_id[CLIENT_ID_SIZE]; - IP_Port ip_port; - uint64_t timestamp; - uint64_t last_pinged; - - /* Returned by this node. Either our friend or us */ - IP_Port ret_ip_port; - uint64_t ret_timestamp; -} Client_data; - typedef struct { uint8_t client_id[CLIENT_ID_SIZE]; Client_data client_list[MAX_FRIEND_CLIENTS]; diff --git a/core/DHT.h b/core/DHT.h index 0e05f132..bfbe8829 100644 --- a/core/DHT.h +++ b/core/DHT.h @@ -34,6 +34,17 @@ extern "C" { /* size of the client_id in bytes */ #define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES +typedef struct { + uint8_t client_id[CLIENT_ID_SIZE]; + IP_Port ip_port; + uint64_t timestamp; + uint64_t last_pinged; + + /* Returned by this node. Either our friend or us */ + IP_Port ret_ip_port; + uint64_t ret_timestamp; +} Client_data; + /* Add a new friend to the friends list client_id must be CLIENT_ID_SIZE bytes long. returns 0 if success -- cgit v1.2.3