summaryrefslogtreecommitdiff
path: root/protocols/Tox/libtox/src/toxcore/forwarding.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-15 12:18:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-15 12:18:35 +0300
commit31e72718ee54867accf0b739a24adc86f8b7ab54 (patch)
treef964c10c5d97d9fe4fd2bd8187c250faedcb0fd7 /protocols/Tox/libtox/src/toxcore/forwarding.c
parent282e9c18d9d3b726cce3d2ef0babc88029661cb8 (diff)
libtox update
Diffstat (limited to 'protocols/Tox/libtox/src/toxcore/forwarding.c')
-rw-r--r--protocols/Tox/libtox/src/toxcore/forwarding.c11
1 files changed, 8 insertions, 3 deletions
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 <string.h>
#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)
{