forked from Green-Sky/tomato
Squashed 'external/toxcore/c-toxcore/' changes from 03e9fbf3703..55752a2e2ef
55752a2e2ef fix(toxav): pass video bit rate as kbit Previously we unintentionally made it Mbit. 7e573280a75 docs(toxav): fix docs of toxav.h - fix units to be more readable - use width before height consistently - video -> audio typo 5f88a084e8c fix: friend_connections leak on allocation failure clean up when it only contains connections in the NONE state 6d27a1ae178 fix: wrong comment for closelist ce4f29e8036 cleanup: Fix all `-Wsign-compare` warnings. 4d4251c397f chore: lower cirrus ci timeout drastically 40676284507 fix: events leak that can occur if allocation fails rare in practice, found by fuzzing 9610ac31c5f fix: Return an error instead of crashing on nullptr args in NGC. a57c2c8f956 refactor: Make ToxAV independent of toxcore internals. 5752fc29f86 refactor: Make tox-bootstrapd use bool instead of int df675786eb2 chore: Add release-drafter github action. 03fd7a69dcf chore: Use toktok's cmp instead of upstream. 350c0ba1205 cleanup: Sort apk/apt install commands in Dockerfiles. 8c1bda502cb chore(deps): bump golang.org/x/net ddb9d3210da chore: Upgrade to FreeBSD 14.1 in cirrus build. e9076f45bd3 chore(cmake): set options changes as cache and with force git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 55752a2e2ef894bfa6d7a2a21a0278e3f2bede7d
This commit is contained in:
@ -40,7 +40,6 @@
|
||||
/** Packets in this range are reserved for AV use. */
|
||||
#define PACKET_ID_RANGE_LOSSY_START 192
|
||||
#define PACKET_ID_RANGE_LOSSY_AV_START 192
|
||||
#define PACKET_ID_RANGE_LOSSY_AV_SIZE 8
|
||||
#define PACKET_ID_RANGE_LOSSY_AV_END 199
|
||||
/** Packets in this range can be used for anything. */
|
||||
#define PACKET_ID_RANGE_LOSSY_CUSTOM_START 200
|
||||
@ -311,7 +310,7 @@ int add_tcp_relay(Net_Crypto *c, const IP_Port *ip_port, const uint8_t *public_k
|
||||
* return -1 on failure.
|
||||
*/
|
||||
non_null()
|
||||
int get_random_tcp_con_number(Net_Crypto *c);
|
||||
int get_random_tcp_con_number(const Net_Crypto *c);
|
||||
|
||||
/** @brief Put IP_Port of a random onion TCP connection in ip_port.
|
||||
*
|
||||
@ -319,7 +318,7 @@ int get_random_tcp_con_number(Net_Crypto *c);
|
||||
* return false on failure.
|
||||
*/
|
||||
non_null()
|
||||
bool get_random_tcp_conn_ip_port(Net_Crypto *c, IP_Port *ip_port);
|
||||
bool get_random_tcp_conn_ip_port(const Net_Crypto *c, IP_Port *ip_port);
|
||||
|
||||
/** @brief Send an onion packet via the TCP relay corresponding to tcp_connections_number.
|
||||
*
|
||||
@ -351,7 +350,7 @@ int send_tcp_forward_request(const Logger *logger, Net_Crypto *c, const IP_Port
|
||||
* return 0 on failure.
|
||||
*/
|
||||
non_null()
|
||||
unsigned int copy_connected_tcp_relays(Net_Crypto *c, Node_format *tcp_relays, uint16_t num);
|
||||
unsigned int copy_connected_tcp_relays(const Net_Crypto *c, Node_format *tcp_relays, uint16_t num);
|
||||
|
||||
/**
|
||||
* Copy a maximum of `max_num` TCP relays we are connected to starting at the index in the TCP relay array
|
||||
@ -360,7 +359,7 @@ unsigned int copy_connected_tcp_relays(Net_Crypto *c, Node_format *tcp_relays, u
|
||||
* Returns the number of relays successfully copied.
|
||||
*/
|
||||
non_null()
|
||||
uint32_t copy_connected_tcp_relays_index(Net_Crypto *c, Node_format *tcp_relays, uint16_t num, uint32_t idx);
|
||||
uint32_t copy_connected_tcp_relays_index(const Net_Crypto *c, Node_format *tcp_relays, uint16_t num, uint32_t idx);
|
||||
|
||||
/** @brief Kill a crypto connection.
|
||||
*
|
||||
|
Reference in New Issue
Block a user