diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-03-22 16:37:28 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-03-22 16:38:46 +0100 |
commit | b652b4588bf0badf6422a13659472d12ba5b53be (patch) | |
tree | 7db8dfe265b7fdb17054e5d15fea741e649165ca | |
parent | b53622e331fe55cec82e0a5b81e5df56c6491220 (diff) | |
download | gnome-bluetooth-b652b4588bf0badf6422a13659472d12ba5b53be.tar.gz |
lib: Update num-types macro, and audio bitmask
Fix BLUETOOTH_TYPE_AUDIO and _BLUETOOTH_TYPE_NUM_TYPES after speaker
type addition.
Fixes: c9a513a6338f673bc26c2aa995f657048173be1e
-rw-r--r-- | lib/bluetooth-enums.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bluetooth-enums.h b/lib/bluetooth-enums.h index 06d26b6f..cb04014b 100644 --- a/lib/bluetooth-enums.h +++ b/lib/bluetooth-enums.h @@ -104,7 +104,7 @@ typedef enum { BLUETOOTH_TYPE_SPEAKERS = 1 << 20, } BluetoothType; -#define _BLUETOOTH_TYPE_NUM_TYPES 20 +#define _BLUETOOTH_TYPE_NUM_TYPES 21 /** * BLUETOOTH_TYPE_INPUT: @@ -117,7 +117,7 @@ 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) +#define BLUETOOTH_TYPE_AUDIO (BLUETOOTH_TYPE_HEADSET | BLUETOOTH_TYPE_HEADPHONES | BLUETOOTH_TYPE_OTHER_AUDIO | BLUETOOTH_TYPE_SPEAKERS) /** * BluetoothColumn: |