summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-01-23 13:27:51 +0100
committerBastien Nocera <hadess@hadess.net>2022-02-07 10:18:20 +0100
commitef2bec87d12f043a46779ff34e2566fe976b5b52 (patch)
treec32b792c1c84653c8f560d882069dae7b3584511 /lib
parent6cf2e30a2191863ae77d269f33b7e43107922ce9 (diff)
downloadgnome-bluetooth-ef2bec87d12f043a46779ff34e2566fe976b5b52.tar.gz
lib: Add BluetoothBatteryType enum
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth-enums.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/bluetooth-enums.h b/lib/bluetooth-enums.h
index 2105786f..9bbe2dad 100644
--- a/lib/bluetooth-enums.h
+++ b/lib/bluetooth-enums.h
@@ -98,3 +98,17 @@ typedef enum {
* Use this value to select any Bluetooth audio device where a #BluetoothType enum is required.
*/
#define BLUETOOTH_TYPE_AUDIO (BLUETOOTH_TYPE_HEADSET | BLUETOOTH_TYPE_HEADPHONES | BLUETOOTH_TYPE_OTHER_AUDIO | BLUETOOTH_TYPE_SPEAKERS)
+
+/**
+ * BluetoothBatteryType:
+ * @BLUETOOTH_BATTERY_TYPE_NONE: no battery reporting
+ * @BLUETOOTH_BATTERY_TYPE_PERCENTAGE: battery reported in percentage
+ * @BLUETOOTH_BATTERY_TYPE_COARSE: battery reported coarsely
+ *
+ * The type of battery reporting supported by the device.
+ **/
+typedef enum {
+ BLUETOOTH_BATTERY_TYPE_NONE,
+ BLUETOOTH_BATTERY_TYPE_PERCENTAGE,
+ BLUETOOTH_BATTERY_TYPE_COARSE
+} BluetoothBatteryType;