summaryrefslogtreecommitdiff
path: root/lib/bluetooth-client.xml
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-08-25 16:09:48 +0200
committerBastien Nocera <hadess@hadess.net>2022-08-31 11:11:32 +0200
commitc9de6bc6c867860cb4ec1f2bec2c6d881c17155d (patch)
tree9f884b517293bd5300993a970e0efd7515254315 /lib/bluetooth-client.xml
parent6d57122b13698e26434a09697ea7b1b9d5ae7905 (diff)
downloadgnome-bluetooth-c9de6bc6c867860cb4ec1f2bec2c6d881c17155d.tar.gz
lib: Implement default-adapter-state property using bluez
Use new adapter property in bluez to implement the default-adapter-state. It should work better, as it doesn't rely only on internal BluetoothClient state in a single process, and can get information when bluetoothd is powering up the adapter. Note that this property still works in the absence of a new enough bluetoothd, without the transitional states. Closes: #121
Diffstat (limited to 'lib/bluetooth-client.xml')
-rw-r--r--lib/bluetooth-client.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bluetooth-client.xml b/lib/bluetooth-client.xml
index 13248214..57b958ff 100644
--- a/lib/bluetooth-client.xml
+++ b/lib/bluetooth-client.xml
@@ -12,6 +12,7 @@
<property name="Alias" type="s" access="readwrite"></property>
<property name="Class" type="u" access="read"></property>
<property name="Powered" type="b" access="readwrite"></property>
+ <property name="PowerState" type="s" access="read"></property>
<property name="Discoverable" type="b" access="readwrite"></property>
<property name="DiscoverableTimeout" type="u" access="readwrite"></property>
<property name="Pairable" type="b" access="readwrite"></property>