mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-11 02:30:58 +02:00
Core: Move HCICommandPayload struct template from BTReal to LibUSBBluetoothAdapter header.
This commit is contained in:
@@ -28,16 +28,6 @@
|
|||||||
|
|
||||||
#include "VideoCommon/OnScreenDisplay.h"
|
#include "VideoCommon/OnScreenDisplay.h"
|
||||||
|
|
||||||
namespace
|
|
||||||
{
|
|
||||||
template <u16 Opcode, typename CommandType>
|
|
||||||
struct HCICommandPayload
|
|
||||||
{
|
|
||||||
hci_cmd_hdr_t header{Opcode, sizeof(CommandType)};
|
|
||||||
CommandType command{};
|
|
||||||
};
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
namespace IOS::HLE
|
namespace IOS::HLE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -12,12 +12,20 @@
|
|||||||
#include "Common/Timer.h"
|
#include "Common/Timer.h"
|
||||||
#include "Common/WorkQueueThread.h"
|
#include "Common/WorkQueueThread.h"
|
||||||
|
|
||||||
|
#include "Core/IOS/USB/Bluetooth/hci.h"
|
||||||
#include "Core/LibusbUtils.h"
|
#include "Core/LibusbUtils.h"
|
||||||
|
|
||||||
struct libusb_device_handle;
|
struct libusb_device_handle;
|
||||||
struct libusb_device_descriptor;
|
struct libusb_device_descriptor;
|
||||||
struct libusb_transfer;
|
struct libusb_transfer;
|
||||||
|
|
||||||
|
template <u16 Opcode, typename CommandType>
|
||||||
|
struct HCICommandPayload
|
||||||
|
{
|
||||||
|
hci_cmd_hdr_t header{Opcode, sizeof(CommandType)};
|
||||||
|
CommandType command{};
|
||||||
|
};
|
||||||
|
|
||||||
class LibUSBBluetoothAdapter
|
class LibUSBBluetoothAdapter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user