aboutsummaryrefslogtreecommitdiffstats
path: root/mumlib/src/command.rs
diff options
context:
space:
mode:
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,
+ },
}