mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
provide access to the close client list
This commit is contained in:
parent
93b34ef9e3
commit
6b38b704a4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user