aboutsummaryrefslogtreecommitdiff
path: root/alsa/src/communication/pipe_chan.rs
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2024-02-10 16:21:25 +0100
committerAndreas Grois <andi@grois.info>2024-02-10 16:21:25 +0100
commit0065710c649a5ab930a5ee2592a5c00225d1e2ef (patch)
tree8c3bd481f2789c894155eaa08a4c28f904b8d6e0 /alsa/src/communication/pipe_chan.rs
parent2ba803bf9be842b66fe376c506e6ea842eb73205 (diff)
First kinda working ALSA volume display
Diffstat (limited to 'alsa/src/communication/pipe_chan.rs')
-rw-r--r--alsa/src/communication/pipe_chan.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/alsa/src/communication/pipe_chan.rs b/alsa/src/communication/pipe_chan.rs
index 43c7ea5..5f0f9ec 100644
--- a/alsa/src/communication/pipe_chan.rs
+++ b/alsa/src/communication/pipe_chan.rs
@@ -29,6 +29,9 @@ impl Receiver {
Err(ReceiveError::UnknownError)
}
}
+ pub(crate) fn file_handle(&self) -> &FileHandle {
+ &self.handle
+ }
}
impl Sender {
@@ -98,7 +101,7 @@ pub(crate) fn create_pipe_chan() -> Result<(Sender, Receiver),()> {
}
}
-struct FileHandle {
+pub(crate) struct FileHandle {
raw : c_int,
}