summaryrefslogtreecommitdiff
path: root/lib/bluetooth-enums.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bluetooth-enums.h')
-rw-r--r--lib/bluetooth-enums.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/bluetooth-enums.h b/lib/bluetooth-enums.h
index 9bbe2dad..3c972d62 100644
--- a/lib/bluetooth-enums.h
+++ b/lib/bluetooth-enums.h
@@ -112,3 +112,21 @@ typedef enum {
BLUETOOTH_BATTERY_TYPE_PERCENTAGE,
BLUETOOTH_BATTERY_TYPE_COARSE
} BluetoothBatteryType;
+
+/**
+ * BluetoothAdapterState:
+ * @BLUETOOTH_ADAPTER_STATE_ABSENT: Bluetooth adapter is missing.
+ * @BLUETOOTH_ADAPTER_STATE_ON: Bluetooth adapter is on.
+ * @BLUETOOTH_ADAPTER_STATE_TURNING_ON: Bluetooth adapter is being turned on.
+ * @BLUETOOTH_ADAPTER_STATE_TURNING_OFF: Bluetooth adapter is being turned off.
+ * @BLUETOOTH_ADAPTER_STATE_OFF: Bluetooth adapter is off.
+ *
+ * A more precise power state for a Bluetooth adapter.
+ **/
+typedef enum {
+ BLUETOOTH_ADAPTER_STATE_ABSENT = 0,
+ BLUETOOTH_ADAPTER_STATE_ON,
+ BLUETOOTH_ADAPTER_STATE_TURNING_ON,
+ BLUETOOTH_ADAPTER_STATE_TURNING_OFF,
+ BLUETOOTH_ADAPTER_STATE_OFF,
+} BluetoothAdapterState;