From 31e72718ee54867accf0b739a24adc86f8b7ab54 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 15 Feb 2024 12:18:35 +0300 Subject: libtox update --- protocols/Tox/libtox/src/toxcore/forwarding.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'protocols/Tox/libtox/src/toxcore/forwarding.c') diff --git a/protocols/Tox/libtox/src/toxcore/forwarding.c b/protocols/Tox/libtox/src/toxcore/forwarding.c index 5e885abd21..18ff3203fc 100644 --- a/protocols/Tox/libtox/src/toxcore/forwarding.c +++ b/protocols/Tox/libtox/src/toxcore/forwarding.c @@ -9,7 +9,12 @@ #include #include "DHT.h" +#include "attributes.h" #include "ccompat.h" +#include "crypto_core.h" +#include "logger.h" +#include "mono_time.h" +#include "network.h" #include "timed_auth.h" struct Forwarding { @@ -31,14 +36,14 @@ struct Forwarding { void *forwarded_response_callback_object; }; -DHT *forwarding_get_dht(Forwarding *forwarding) +DHT *forwarding_get_dht(const Forwarding *forwarding) { return forwarding->dht; } #define SENDBACK_TIMEOUT 3600 -bool send_forward_request(Networking_Core *net, const IP_Port *forwarder, +bool send_forward_request(const Networking_Core *net, const IP_Port *forwarder, const uint8_t *chain_keys, uint16_t chain_length, const uint8_t *data, uint16_t data_length) { @@ -316,7 +321,7 @@ static int handle_forwarding(void *object, const IP_Port *source, const uint8_t } } -bool forward_reply(Networking_Core *net, const IP_Port *forwarder, +bool forward_reply(const Networking_Core *net, const IP_Port *forwarder, const uint8_t *sendback, uint16_t sendback_length, const uint8_t *data, uint16_t length) { -- cgit v1.2.3