diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-15 11:05:36 -0600 |
|---|---|---|
| committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-16 12:15:06 -0600 |
| commit | 9c0724b27073e5f6cdf7ec9d10852cc5a073d863 (patch) | |
| tree | ed79eb5d39128ec70409cf71300f704d5f740be5 /src/core/hle/service/btm/btm_system.cpp | |
| parent | c7588c042ba14bce871d12f5cf4dbf64bb5b3fe9 (diff) | |
service: btm: Migrate service to new IPC
Diffstat (limited to 'src/core/hle/service/btm/btm_system.cpp')
| -rw-r--r-- | src/core/hle/service/btm/btm_system.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/core/hle/service/btm/btm_system.cpp b/src/core/hle/service/btm/btm_system.cpp new file mode 100644 index 000000000..f6ac6bdba --- /dev/null +++ b/src/core/hle/service/btm/btm_system.cpp @@ -0,0 +1,32 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "common/logging/log.h" +#include "core/hle/service/btm/btm_system.h" +#include "core/hle/service/btm/btm_system_core.h" +#include "core/hle/service/cmif_serialization.h" +#include "core/hle/service/ipc_helpers.h" +#include "core/hle/service/service.h" + +namespace Service::BTM { + +IBtmSystem::IBtmSystem(Core::System& system_) : ServiceFramework{system_, "btm:sys"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, C<&IBtmSystem::GetCore>, "GetCore"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +IBtmSystem::~IBtmSystem() = default; + +Result IBtmSystem::GetCore(OutInterface<IBtmSystemCore> out_interface) { + LOG_WARNING(Service_BTM, "called"); + + *out_interface = std::make_shared<IBtmSystemCore>(system); + R_SUCCEED(); +} + +} // namespace Service::BTM |
