summaryrefslogtreecommitdiff
path: root/toxcore/friend_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/friend_connection.h')
-rw-r--r--toxcore/friend_connection.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h
index b968c57d..4d6f841c 100644
--- a/toxcore/friend_connection.h
+++ b/toxcore/friend_connection.h
@@ -108,6 +108,8 @@ typedef struct {
108 void *fr_request_object; 108 void *fr_request_object;
109 109
110 uint64_t last_LANdiscovery; 110 uint64_t last_LANdiscovery;
111
112 bool local_discovery_enabled;
111} Friend_Connections; 113} Friend_Connections;
112 114
113/* return friendcon_id corresponding to the real public key on success. 115/* return friendcon_id corresponding to the real public key on success.
@@ -197,7 +199,7 @@ void set_friend_request_callback(Friend_Connections *fr_c, int (*fr_request_call
197 const uint8_t *, uint16_t, void *), void *object); 199 const uint8_t *, uint16_t, void *), void *object);
198 200
199/* Create new friend_connections instance. */ 201/* Create new friend_connections instance. */
200Friend_Connections *new_friend_connections(Onion_Client *onion_c); 202Friend_Connections *new_friend_connections(Onion_Client *onion_c, bool local_discovery_enabled);
201 203
202/* main friend_connections loop. */ 204/* main friend_connections loop. */
203void do_friend_connections(Friend_Connections *fr_c, void *userdata); 205void do_friend_connections(Friend_Connections *fr_c, void *userdata);