[gnome-bluetooth/wip/hadess/3.34.4: 1/2] lib: Update num-types macro, and audio bitmask
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/3.34.4: 1/2] lib: Update num-types macro, and audio bitmask
- Date: Mon, 22 Mar 2021 15:40:06 +0000 (UTC)
commit b652b4588bf0badf6422a13659472d12ba5b53be
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 22 16:37:28 2021 +0100
lib: Update num-types macro, and audio bitmask
Fix BLUETOOTH_TYPE_AUDIO and _BLUETOOTH_TYPE_NUM_TYPES after speaker
type addition.
Fixes: c9a513a6338f673bc26c2aa995f657048173be1e
lib/bluetooth-enums.h | 4 ++--
1 file 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]