From f90c91628a52eabe96a4392e91aaf8a64c6617b1 Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Sun, 12 Nov 2023 10:50:07 +0100 Subject: [PATCH] Create seperate voice_gateway.rs and voice_udp.rs --- src/lib.rs | 4 +++- src/{voice.rs => voice_gateway.rs} | 0 src/voice_udp.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) rename src/{voice.rs => voice_gateway.rs} (100%) create mode 100644 src/voice_udp.rs diff --git a/src/lib.rs b/src/lib.rs index e63c41d..f3bc937 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,9 @@ pub mod instance; pub mod ratelimiter; pub mod types; #[cfg(feature = "client")] -pub mod voice; +pub mod voice_gateway; +#[cfg(feature = "client")] +pub mod voice_udp; #[derive(Clone, Default, Debug, PartialEq, Eq, Hash)] /// A URLBundle bundles together the API-, Gateway- and CDN-URLs of a Spacebar instance. diff --git a/src/voice.rs b/src/voice_gateway.rs similarity index 100% rename from src/voice.rs rename to src/voice_gateway.rs diff --git a/src/voice_udp.rs b/src/voice_udp.rs new file mode 100644 index 0000000..ec1b08a --- /dev/null +++ b/src/voice_udp.rs @@ -0,0 +1 @@ +/// Defines voice raw udp socket handling