diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-11-28 02:46:10 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-11-28 02:46:10 +0100 |
| commit | 1014f6c85b3d77009d8ee34f9517c73fc32f5379 (patch) | |
| tree | 3736f150813671ef0ac3aa8f2a847021ca7bb3a7 /mumlib/src/command.rs | |
| parent | 790fdc02d071d0f110eff1b17374f315a1516fb7 (diff) | |
| parent | 7f04dcfc4c04f2266f1399f238f8869c1c09b57a (diff) | |
| download | mum-1014f6c85b3d77009d8ee34f9517c73fc32f5379.tar.gz | |
Merge branch 'dont-overwrite-socket-file' into 'main'
Dont overwrite socket file
Closes #72
See merge request gustav/mum!40
Diffstat (limited to 'mumlib/src/command.rs')
| -rw-r--r-- | mumlib/src/command.rs | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index 2e824fc..73a065d 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -9,9 +9,12 @@ pub enum Command { }, ChannelList, ConfigReload, + DeafenSelf(Option<bool>), InputVolumeSet(f32), + MuteOther(String, Option<bool>), + MuteSelf(Option<bool>), OutputVolumeSet(f32), - UserVolumeSet(String, f32), + Ping, ServerConnect { host: String, port: u16, @@ -19,14 +22,12 @@ pub enum Command { accept_invalid_cert: bool, }, ServerDisconnect, - Status, ServerStatus { host: String, port: u16, }, - DeafenSelf(Option<bool>), - MuteSelf(Option<bool>), - MuteOther(String, Option<bool>), + Status, + UserVolumeSet(String, f32), } #[derive(Debug, Deserialize, Serialize)] @@ -34,22 +35,23 @@ pub enum CommandResponse { ChannelList { channels: Channel, }, + DeafenStatus { + is_deafened: bool, + }, + MuteStatus { + is_muted: bool, + }, + Pong, ServerConnect { welcome_message: Option<String>, }, - Status { - server_state: Server, - }, ServerStatus { version: u32, users: u32, max_users: u32, bandwidth: u32, }, - MuteStatus { - is_muted: bool, - }, - DeafenStatus { - is_deafened: bool, + Status { + server_state: Server, }, } |
