From 76c1d5c35dab94fa8bd1dd000bf8dfa2ed7de8d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Monnom?= Date: Wed, 20 Dec 2023 01:52:58 +0100 Subject: [PATCH] fix builds - connection_quality LOST (#274) --- livekit-ffi/protocol/room.proto | 1 + livekit-ffi/src/conversion/room.rs | 1 + livekit-ffi/src/livekit.proto.rs | 3 +++ 3 files changed, 5 insertions(+) diff --git a/livekit-ffi/protocol/room.proto b/livekit-ffi/protocol/room.proto index 1d201c05..3212095a 100644 --- a/livekit-ffi/protocol/room.proto +++ b/livekit-ffi/protocol/room.proto @@ -209,6 +209,7 @@ enum ConnectionQuality { QUALITY_POOR = 0; QUALITY_GOOD = 1; QUALITY_EXCELLENT = 2; + QUALITY_LOST = 3; } enum ConnectionState { diff --git a/livekit-ffi/src/conversion/room.rs b/livekit-ffi/src/conversion/room.rs index 6677924b..c91a0f08 100644 --- a/livekit-ffi/src/conversion/room.rs +++ b/livekit-ffi/src/conversion/room.rs @@ -43,6 +43,7 @@ impl From for proto::ConnectionQuality { ConnectionQuality::Excellent => Self::QualityExcellent, ConnectionQuality::Good => Self::QualityGood, ConnectionQuality::Poor => Self::QualityPoor, + ConnectionQuality::Lost => Self::QualityLost, } } } diff --git a/livekit-ffi/src/livekit.proto.rs b/livekit-ffi/src/livekit.proto.rs index 548d05b8..1015b9e5 100644 --- a/livekit-ffi/src/livekit.proto.rs +++ b/livekit-ffi/src/livekit.proto.rs @@ -2664,6 +2664,7 @@ pub enum ConnectionQuality { QualityPoor = 0, QualityGood = 1, QualityExcellent = 2, + QualityLost = 3, } impl ConnectionQuality { /// String value of the enum field names used in the ProtoBuf definition. @@ -2675,6 +2676,7 @@ impl ConnectionQuality { ConnectionQuality::QualityPoor => "QUALITY_POOR", ConnectionQuality::QualityGood => "QUALITY_GOOD", ConnectionQuality::QualityExcellent => "QUALITY_EXCELLENT", + ConnectionQuality::QualityLost => "QUALITY_LOST", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -2683,6 +2685,7 @@ impl ConnectionQuality { "QUALITY_POOR" => Some(Self::QualityPoor), "QUALITY_GOOD" => Some(Self::QualityGood), "QUALITY_EXCELLENT" => Some(Self::QualityExcellent), + "QUALITY_LOST" => Some(Self::QualityLost), _ => None, } }