diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-02-03 12:00:16 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-02-03 12:00:16 +0100 |
commit | c9a513a6338f673bc26c2aa995f657048173be1e (patch) | |
tree | aabc7095a9f2d008ceddd65ec9241e78ba010806 | |
parent | cf4a0ba59dc092f84030349d9933caf00f2640a2 (diff) | |
download | gnome-bluetooth-c9a513a6338f673bc26c2aa995f657048173be1e.tar.gz |
lib: Add speaker typewip/hadess/add-speakers
Closes: #77
-rw-r--r-- | lib/bluetooth-enums.h | 4 | ||||
-rw-r--r-- | lib/bluetooth-utils.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/bluetooth-enums.h b/lib/bluetooth-enums.h index b54ad361..3c8b72c3 100644 --- a/lib/bluetooth-enums.h +++ b/lib/bluetooth-enums.h @@ -79,6 +79,7 @@ typedef enum { * @BLUETOOTH_TYPE_DISPLAY: a display * @BLUETOOTH_TYPE_WEARABLE: a wearable computer * @BLUETOOTH_TYPE_TOY: a toy or game + * @BLUETOOTH_TYPE_SPEAKERS: audio speaker or speakers * * The type of a Bluetooth device. See also %BLUETOOTH_TYPE_INPUT and %BLUETOOTH_TYPE_AUDIO **/ @@ -102,7 +103,8 @@ typedef enum { BLUETOOTH_TYPE_SCANNER = 1 << 16, BLUETOOTH_TYPE_DISPLAY = 1 << 17, BLUETOOTH_TYPE_WEARABLE = 1 << 18, - BLUETOOTH_TYPE_TOY = 1 << 19 + BLUETOOTH_TYPE_TOY = 1 << 19, + BLUETOOTH_TYPE_SPEAKERS = 1 << 20, } BluetoothType; #define _BLUETOOTH_TYPE_NUM_TYPES 20 diff --git a/lib/bluetooth-utils.c b/lib/bluetooth-utils.c index 201e479e..09504893 100644 --- a/lib/bluetooth-utils.c +++ b/lib/bluetooth-utils.c @@ -185,6 +185,8 @@ bluetooth_class_to_type (guint32 class) case 0x01: case 0x02: return BLUETOOTH_TYPE_HEADSET; + case 0x05: + return BLUETOOTH_TYPE_SPEAKERS; case 0x06: return BLUETOOTH_TYPE_HEADPHONES; case 0x0b: /* VCR */ |