summaryrefslogtreecommitdiff
path: root/lib/bluetooth/interfaces.vala
diff options
context:
space:
mode:
authorAylur <[email protected]>2025-01-28 11:41:33 +0100
committerGitHub <[email protected]>2025-01-28 11:41:33 +0100
commita23ef6a6c0bd9da6c68f8bc5e6d8e1efd9210e09 (patch)
tree1acc45b813a844440d494e05de8dcf34085ab9d8 /lib/bluetooth/interfaces.vala
parentd0de56e715cc1982d2eb0097b687c61133a0ff75 (diff)
parent5418f29bf1c8e3c2ce53add5d0a54b1cd003c13f (diff)
Merge pull request #141 from ojaskavathe/main
feat: add battery_percentage to bluetooth devices
Diffstat (limited to 'lib/bluetooth/interfaces.vala')
-rw-r--r--lib/bluetooth/interfaces.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bluetooth/interfaces.vala b/lib/bluetooth/interfaces.vala
index dcb1c4b..043470e 100644
--- a/lib/bluetooth/interfaces.vala
+++ b/lib/bluetooth/interfaces.vala
@@ -44,3 +44,8 @@ private interface AstalBluetooth.IDevice : DBusProxy {
public abstract uint32 class { get; }
}
+[DBus (name = "org.bluez.Battery1")]
+private interface AstalBluetooth.IBattery : DBusProxy {
+ public abstract uint8 percentage { get; }
+ public abstract string source { owned get; }
+}