Compare commits
2 Commits
4c76d2b618
...
0e076a29ef
Author | SHA1 | Date | |
---|---|---|---|
0e076a29ef | |||
5707b795f2 |
@ -32,7 +32,7 @@ impl BluetoothInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_all_bluetooth_devices(
|
pub fn get_all_bluetooth_devices(
|
||||||
connection: &dbus::blocking::Connection,
|
&connection: dbus::blocking::Connection,
|
||||||
) -> Result<Vec<BluetoothInfo>> {
|
) -> Result<Vec<BluetoothInfo>> {
|
||||||
let proxy = connection.with_proxy("org.bluez", "/", Duration::from_millis(5000));
|
let proxy = connection.with_proxy("org.bluez", "/", Duration::from_millis(5000));
|
||||||
let (result,): (HashMap<dbus::Path<'static>, HashMap<String, arg::PropMap>>,) = proxy
|
let (result,): (HashMap<dbus::Path<'static>, HashMap<String, arg::PropMap>>,) = proxy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user