aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src/command.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2020-11-03 22:13:37 +0100
committerEskil Queseth <eskilq@kth.se>2020-11-03 22:13:37 +0100
commit4dd73f7b837572211b71483d62bbdfb1227d2aee (patch)
treeb0ae8e001e1ada802a95fd1a2fc2b59272f45f27 /mumlib/src/command.rs
parent71941137265669013ef64473748c4fde6bc48f1c (diff)
parentd6496cb0f6abba855b04338fa8bc5aaa89487c29 (diff)
downloadmum-4dd73f7b837572211b71483d62bbdfb1227d2aee.tar.gz
Merge branch 'main' into mute
Diffstat (limited to 'mumlib/src/command.rs')
-rw-r--r--mumlib/src/command.rs24
1 files changed, 21 insertions, 3 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs
index 63dd5f9..28b4d79 100644
--- a/mumlib/src/command.rs
+++ b/mumlib/src/command.rs
@@ -10,6 +10,8 @@ pub enum Command {
ChannelList,
ConfigReload,
InputVolumeSet(f32),
+ OutputVolumeSet(f32),
+ UserVolumeSet(String, f32),
ServerConnect {
host: String,
port: u16,
@@ -21,11 +23,27 @@ pub enum Command {
DeafenSelf,
MuteSelf,
MuteOther(String),
+ ServerStatus {
+ host: String,
+ port: u16,
+ },
}
#[derive(Debug, Deserialize, Serialize)]
pub enum CommandResponse {
- ChannelList { channels: Channel },
- ServerConnect { welcome_message: Option<String> },
- Status { server_state: Server },
+ ChannelList {
+ channels: Channel,
+ },
+ ServerConnect {
+ welcome_message: Option<String>,
+ },
+ Status {
+ server_state: Server,
+ },
+ ServerStatus {
+ version: u32,
+ users: u32,
+ max_users: u32,
+ bandwidth: u32,
+ },
}