aboutsummaryrefslogtreecommitdiff
path: root/alsa/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alsa/src/config.rs')
-rw-r--r--alsa/src/config.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/alsa/src/config.rs b/alsa/src/config.rs
new file mode 100644
index 0000000..a617690
--- /dev/null
+++ b/alsa/src/config.rs
@@ -0,0 +1,19 @@
+use std::sync::mpsc::channel;
+
+use serde::{Serialize, Deserialize};
+use swaystatus_plugin::*;
+
+use crate::{runnable::AlsaVolumeRunnable, communication::SenderForMain};
+
+#[derive(Debug, Serialize, Deserialize)]
+pub struct AlsaVolumeConfig{
+
+}
+
+
+impl SwayStatusModuleInstance for AlsaVolumeConfig {
+ fn make_runnable<'p>(&'p self, to_main : Box<dyn MsgModuleToMain + 'p>) -> (Box<dyn SwayStatusModuleRunnable + 'p>, Box<dyn MsgMainToModule + 'p>) {
+ let (s,r) = channel();
+ (Box::new(AlsaVolumeRunnable::new(to_main, r, self)), Box::new(SenderForMain::new(s)))
+ }
+}