diff --git a/src/spirc.rs b/src/spirc.rs index 4e54be8f..723853fd 100644 --- a/src/spirc.rs +++ b/src/spirc.rs @@ -109,6 +109,10 @@ impl SpircManager { self.0.lock().unwrap().handle(frame); } } + + pub fn devices(&self) -> HashMap { + self.0.lock().unwrap().devices.clone() + } } impl SpircInternal {