pop-os / dbus-settings-bindings

Rust bindings for D-Bus settings interfaces
Mozilla Public License 2.0
7 stars 4 forks source link

feat: bluez #2

Closed wash2 closed 1 year ago

wash2 commented 1 year ago

This is a start at trying to create a usable bluez crate for applets and settings. I have not tested it much, so i can't guarantee that it works yet but I'd like to try using it in a bluetooth applet soon as a test.

As far as I can tell, it is a bit tricky to get the adapters and devices. the default adapter would probably be ok to assume in most cases, but i assume it might be best to just search for the adapter in managed objects instead.

It seems that getting the device list requires a similar approach as well.

mmstick commented 1 year ago

bluez/bluer seems to be an official bluez binding for Rust from bluez. Though it interfaces with bluez via C bindings.

mmstick commented 1 year ago

bluer has an open issue seeking PRs for zbus support, so we could contribute this there.

wash2 commented 1 year ago

ok i'll probably close this then and look into possibly contributing this to bluer instead :)