From 677173d01b2acde2b29ed9d0e35d0b4d3eec7566 Mon Sep 17 00:00:00 2001 From: Simon Persson Date: Tue, 16 Feb 2016 22:26:51 +0100 Subject: [PATCH] Export devices. --- src/spirc.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 {