From 8c8bd9debf93b24951d4ff63c73a5c418aa807a4 Mon Sep 17 00:00:00 2001 From: ndeadly <24677491+ndeadly@users.noreply.github.com> Date: Tue, 18 May 2021 17:53:23 +0200 Subject: [PATCH] btdrv: add bluetooth event info definition for connection event on fw < 9.0.0 (cherry picked from commit 1e7abd975fc906d1a483b33fa86969cb15e93ece) --- nx/include/switch/services/btdrv.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nx/include/switch/services/btdrv.h b/nx/include/switch/services/btdrv.h index 0126d8e1..92b32303 100644 --- a/nx/include/switch/services/btdrv.h +++ b/nx/include/switch/services/btdrv.h @@ -89,12 +89,19 @@ typedef struct { struct { union { + struct { + BtdrvAddress addr; ///< Device address. + u8 pad[2]; ///< Padding + u32 status; ///< Status, always 0 except with ::BtdrvConnectionEventType_Status: 2 = ACL Link is now Resumed, 9 = connection failed (pairing/authentication failed, or opening the hid connection failed). + u32 type; ///< \ref BtdrvConnectionEventType + } v1; ///< [1.0.0-8.1.1] + struct { u32 status; ///< Status, always 0 except with ::BtdrvConnectionEventType_Status: 2 = ACL Link is now Resumed, 9 = connection failed (pairing/authentication failed, or opening the hid connection failed). BtdrvAddress addr; ///< Device address. u8 pad[2]; ///< Padding u32 type; ///< \ref BtdrvConnectionEventType - } v1; ///< [1.0.0-11.0.1] + } v9; ///< [9.0.0-11.0.1] struct { u32 type; ///< \ref BtdrvConnectionEventType