mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 04:22:50 +02:00
set: update SetSysBluetoothDevicesSettings with new fields found in recent firmwares
This commit is contained in:
parent
0ba4f96bfe
commit
ceb7ee1cbf
@ -312,7 +312,7 @@ typedef struct {
|
|||||||
/// BluetoothDevicesSettings
|
/// BluetoothDevicesSettings
|
||||||
typedef struct {
|
typedef struct {
|
||||||
BtdrvAddress addr; ///< \ref BtdrvAddress
|
BtdrvAddress addr; ///< \ref BtdrvAddress
|
||||||
BtmBdName name; ///< BdName. Unused on 13.0.0+
|
BtmBdName name; ///< [1.0.0-12.1.0] BdName. On 13.0.0+ name2 is used instead.
|
||||||
BtmClassOfDevice class_of_device; ///< ClassOfDevice
|
BtmClassOfDevice class_of_device; ///< ClassOfDevice
|
||||||
u8 link_key[0x10]; ///< LinkKey
|
u8 link_key[0x10]; ///< LinkKey
|
||||||
u8 link_key_present; ///< LinkKeyPresent
|
u8 link_key_present; ///< LinkKeyPresent
|
||||||
@ -328,14 +328,11 @@ typedef struct {
|
|||||||
u8 device_type; ///< DeviceType
|
u8 device_type; ///< DeviceType
|
||||||
u16 brr_size; ///< BrrSize
|
u16 brr_size; ///< BrrSize
|
||||||
u8 brr[0x9]; ///< Brr
|
u8 brr[0x9]; ///< Brr
|
||||||
union {
|
u8 audio_source_volume; ///< [13.0.0+] AudioSourceVolume
|
||||||
u8 reserved[0x12B]; ///< Reserved [1.0.0-12.1.0]
|
char name2[0xF9]; ///< [13.0.0+] Name
|
||||||
|
u8 audio_sink_volume; ///< [15.0.0+] AudioSinkVolume
|
||||||
struct {
|
u32 audio_flags; ///< [14.0.0+] AudioFlags
|
||||||
u8 pad; ///< Padding
|
u8 reserved[0x2C]; ///< Reserved
|
||||||
char name2[0xF9]; ///< Name
|
|
||||||
}; ///< [13.0.0+]
|
|
||||||
};
|
|
||||||
} SetSysBluetoothDevicesSettings;
|
} SetSysBluetoothDevicesSettings;
|
||||||
|
|
||||||
/// Structure returned by \ref setsysGetFirmwareVersion.
|
/// Structure returned by \ref setsysGetFirmwareVersion.
|
||||||
|
Loading…
Reference in New Issue
Block a user