From 358044bdfd357916bad9ae9298fd89b54291a7a6 Mon Sep 17 00:00:00 2001 From: Ojas Kavathe Date: Wed, 27 Nov 2024 04:18:52 +0530 Subject: feat: add battery_percent to bluetooth devices --- lib/bluetooth/interfaces.vala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/bluetooth/interfaces.vala') 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; } +} -- cgit v1.2.3