2026-09-25 15:57:13

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-25 15:57:13 +00:00
parent 0736ac241b
commit 93faf64ab0
45 changed files with 770 additions and 1005 deletions
+9 -10
View File
@@ -20,9 +20,10 @@ namespace Service::BtDrv {
class IBluetoothUser final : public ServiceFramework<IBluetoothUser> {
public:
explicit IBluetoothUser(Core::System& system_)
: ServiceFramework{system_, "bt"}, service_context{system_, "bt"} {
// clang-format off
static const FunctionInfo functions[] = {
: ServiceFramework{system_, "bt"}, service_context{system_, "bt"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, nullptr, "LeClientReadCharacteristic"},
FunctionInfo{1, nullptr, "LeClientReadDescriptor"},
FunctionInfo{2, nullptr, "LeClientWriteCharacteristic"},
@@ -59,9 +60,10 @@ private:
class IBluetoothDriver final : public ServiceFramework<IBluetoothDriver> {
public:
explicit IBluetoothDriver(Core::System& system_) : ServiceFramework{system_, "btdrv"} {
// clang-format off
static const FunctionInfo functions[] = {
explicit IBluetoothDriver(Core::System& system_) : ServiceFramework{system_, "btdrv"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, nullptr, "InitializeBluetoothDriver"},
FunctionInfo{1, nullptr, "InitializeBluetooth"},
FunctionInfo{2, nullptr, "EnableBluetooth"},
@@ -193,10 +195,7 @@ public:
FunctionInfo{256, nullptr, "IsManufacturingMode"},
FunctionInfo{257, nullptr, "EmulateBluetoothCrash"},
FunctionInfo{258, nullptr, "GetBleChannelMap"}
};
// clang-format on
RegisterHandlers(functions);
);
}
private: