From abacfceb23fc41d0b632a7985c2291c02225b432 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 Aug 2023 19:38:07 +0300 Subject: libtox synced with their master, it could help to fix #3649 --- protocols/Tox/libtox/src/toxcore/bin_pack.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/libtox/src/toxcore/bin_pack.h') diff --git a/protocols/Tox/libtox/src/toxcore/bin_pack.h b/protocols/Tox/libtox/src/toxcore/bin_pack.h index 542f533b88..51646c088a 100644 --- a/protocols/Tox/libtox/src/toxcore/bin_pack.h +++ b/protocols/Tox/libtox/src/toxcore/bin_pack.h @@ -90,9 +90,10 @@ non_null() bool bin_pack_u16(Bin_Pack *bp, uint16_t val); non_null() bool bin_pack_u32(Bin_Pack *bp, uint32_t val); /** @brief Pack a `uint64_t` as MessagePack positive integer. */ non_null() bool bin_pack_u64(Bin_Pack *bp, uint64_t val); +/** @brief Pack an empty array member as a MessagePack nil value. */ +non_null() bool bin_pack_nil(Bin_Pack *bp); /** @brief Pack a byte array as MessagePack bin. */ non_null() bool bin_pack_bin(Bin_Pack *bp, const uint8_t *data, uint32_t length); - /** @brief Start packing a custom binary representation. * * A call to this function must be followed by exactly `size` bytes packed by functions below. -- cgit v1.2.3