Core: Move HCICommandPayload struct template from BTReal to LibUSBBluetoothAdapter header.

This commit is contained in:
Jordan Woyak 2025-07-07 07:24:48 -05:00
commit 5336c23329
2 changed files with 8 additions and 10 deletions

View file

@ -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
{ {

View file

@ -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: