summaryrefslogtreecommitdiff
path: root/lib/bluetooth-utils.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-09-02 15:51:08 +0200
committerBastien Nocera <hadess@hadess.net>2022-09-05 18:12:13 +0200
commite21ed2b6f452b0b87fb89181a9b1872a654883dd (patch)
treecba0cafa983c25641190eb7d1ba0804cafbae832 /lib/bluetooth-utils.h
parent71b91082a2fadaa7fb29551dea76c6d492b42f69 (diff)
downloadgnome-bluetooth-e21ed2b6f452b0b87fb89181a9b1872a654883dd.tar.gz
lib: Don't just get BlueZ battery info from upower
Handle the battery information for a device even if it is available from a source other than bluetoothd in the upower output. This means getting battery information from the more authoritative kernel-supported protocol on Logitech devices, as well as being able to have battery information for Bluetooth classic devices like Apple input devices. See https://gitlab.freedesktop.org/upower/upower/-/merge_requests/166
Diffstat (limited to 'lib/bluetooth-utils.h')
-rw-r--r--lib/bluetooth-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bluetooth-utils.h b/lib/bluetooth-utils.h
index efe091bf..14499132 100644
--- a/lib/bluetooth-utils.h
+++ b/lib/bluetooth-utils.h
@@ -27,6 +27,8 @@
#include <gio/gio.h>
#include <bluetooth-enums.h>
+#define BDADDR_STR_LEN 17
+
BluetoothType bluetooth_class_to_type (guint32 class);
BluetoothType bluetooth_appearance_to_type (guint16 appearance);
const gchar *bluetooth_type_to_string (guint type);