summaryrefslogtreecommitdiff
path: root/toxcore/DHT.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/DHT.h')
-rw-r--r--toxcore/DHT.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index e4ba2154..b53801b5 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -26,10 +26,6 @@
26 26
27#include "net_crypto.h" 27#include "net_crypto.h"
28 28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33 29
34/* Size of the client_id in bytes. */ 30/* Size of the client_id in bytes. */
35#define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES 31#define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES
@@ -126,7 +122,7 @@ int DHT_delfriend(DHT *dht, uint8_t *client_id);
126 * port must be 2 bytes long. 122 * port must be 2 bytes long.
127 * returns ip if success. 123 * returns ip if success.
128 * returns ip of 0 if failure (This means the friend is either offline or we have not found him yet). 124 * returns ip of 0 if failure (This means the friend is either offline or we have not found him yet).
129 * returns ip of 1 if friend is not in list. 125 * returns ip of 1 if friend is not in list.
130 */ 126 */
131IP_Port DHT_getfriendip(DHT *dht, uint8_t *client_id); 127IP_Port DHT_getfriendip(DHT *dht, uint8_t *client_id);
132 128
@@ -195,8 +191,5 @@ int DHT_isconnected(DHT *dht);
195 191
196void addto_lists(DHT *dht, IP_Port ip_port, uint8_t *client_id); 192void addto_lists(DHT *dht, IP_Port ip_port, uint8_t *client_id);
197 193
198#ifdef __cplusplus
199}
200#endif
201 194
202#endif 195#endif