provide access to the close client list

This commit is contained in:
Aaron Lipinski 2013-08-11 14:45:56 +12:00
parent 93b34ef9e3
commit 6b38b704a4
2 changed files with 8 additions and 0 deletions

View File

@ -104,6 +104,12 @@ static Pinged send_nodes[LSEND_NODES_ARRAY];
/*----------------------------------------------------------------------------------*/
Client_data * DHT_get_close_list(void)
{
return close_clientlist;
}
/* Compares client_id1 and client_id2 with client_id
* return 0 if both are same distance
* return 1 if client_id1 is closer

View File

@ -45,6 +45,8 @@ typedef struct {
uint64_t ret_timestamp;
} Client_data;
Client_data * DHT_get_close_list(void);
/* Add a new friend to the friends list
client_id must be CLIENT_ID_SIZE bytes long.
returns 0 if success