From 1ba8738c9f2c720d989e6ffccb54edefcd6e89f2 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 29 Mar 2020 17:20:17 +0200 Subject: [PATCH] Misc fixes --- controller/audio/AudioPacketSender.h | 1 + controller/net/CongestionControl.h | 2 +- controller/protocol/packets/PacketManager.h | 6 +++--- controller/protocol/protocol/Interface.h | 2 +- tools/Buffers.h | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/controller/audio/AudioPacketSender.h b/controller/audio/AudioPacketSender.h index 405580a..e250e1a 100644 --- a/controller/audio/AudioPacketSender.h +++ b/controller/audio/AudioPacketSender.h @@ -4,6 +4,7 @@ #include "../protocol/packets/PacketSender.h" #include #include + #if defined HAVE_CONFIG_H || defined TGVOIP_USE_INSTALLED_OPUS #include #else diff --git a/controller/net/CongestionControl.h b/controller/net/CongestionControl.h index 3ae7dac..c4b5d10 100644 --- a/controller/net/CongestionControl.h +++ b/controller/net/CongestionControl.h @@ -32,7 +32,7 @@ struct tgvoip_congestionctl_packet_t }; typedef struct tgvoip_congestionctl_packet_t tgvoip_congestionctl_packet_t; -class Packet; +struct Packet; struct CongestionControlPacket { CongestionControlPacket(uint32_t _seq, uint8_t _streamId); diff --git a/controller/protocol/packets/PacketManager.h b/controller/protocol/packets/PacketManager.h index 704d764..0d449dd 100644 --- a/controller/protocol/packets/PacketManager.h +++ b/controller/protocol/packets/PacketManager.h @@ -19,9 +19,9 @@ inline bool seqgte(uint32_t s1, uint32_t s2) return s1 == s2 || seqgt(s1, s2); } -class RecentOutgoingPacket; -class PendingOutgoingPacket; -class Packet; +struct RecentOutgoingPacket; +struct PendingOutgoingPacket; +struct Packet; // Local and remote packet history management class PacketManager final { diff --git a/controller/protocol/protocol/Interface.h b/controller/protocol/protocol/Interface.h index ad34f13..1054eac 100644 --- a/controller/protocol/protocol/Interface.h +++ b/controller/protocol/protocol/Interface.h @@ -328,7 +328,7 @@ struct Wrapped : public Serializable, SingleChoice> std::shared_ptr d; }; -class OutputBytes; +struct OutputBytes; struct Bytes : public Serializable, SingleChoice { diff --git a/tools/Buffers.h b/tools/Buffers.h index f7826c2..b4787b1 100644 --- a/tools/Buffers.h +++ b/tools/Buffers.h @@ -24,8 +24,8 @@ namespace tgvoip { class Buffer; class NetworkAddress; -class Serializable; -class VersionInfo; +struct Serializable; +struct VersionInfo; class BufferInputStream {