Export devices.

This commit is contained in:
Simon Persson 2016-02-16 22:26:51 +01:00
parent 5a19d38270
commit 677173d01b

View file

@ -109,6 +109,10 @@ impl SpircManager {
self.0.lock().unwrap().handle(frame); self.0.lock().unwrap().handle(frame);
} }
} }
pub fn devices(&self) -> HashMap<String, String> {
self.0.lock().unwrap().devices.clone()
}
} }
impl SpircInternal { impl SpircInternal {