aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/btm/btm_user.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-19 14:49:42 -0500
committerGitHub <noreply@github.com>2024-02-19 14:49:42 -0500
commit8d5473e67c202768673d4d9f3e59df50501f30e4 (patch)
tree2c6ba25f4778db3ff9e60f5c84abcb98a15b751b /src/core/hle/service/btm/btm_user.cpp
parent3b1b98c645d62c724b831cc2f72a23565e3e33d5 (diff)
parent110969e2070577557eddef09071a7be3f5ead8e4 (diff)
Merge pull request #13031 from german77/btm-interfcae
service: btm: Migrate service to new IPC
Diffstat (limited to 'src/core/hle/service/btm/btm_user.cpp')
-rw-r--r--src/core/hle/service/btm/btm_user.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/core/hle/service/btm/btm_user.cpp b/src/core/hle/service/btm/btm_user.cpp
new file mode 100644
index 000000000..d2e228f8d
--- /dev/null
+++ b/src/core/hle/service/btm/btm_user.cpp
@@ -0,0 +1,30 @@
+// 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_user.h"
+#include "core/hle/service/btm/btm_user_core.h"
+#include "core/hle/service/cmif_serialization.h"
+
+namespace Service::BTM {
+
+IBtmUser::IBtmUser(Core::System& system_) : ServiceFramework{system_, "btm:u"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, C<&IBtmUser::GetCore>, "GetCore"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+}
+
+IBtmUser::~IBtmUser() = default;
+
+Result IBtmUser::GetCore(OutInterface<IBtmUserCore> out_interface) {
+ LOG_WARNING(Service_BTM, "called");
+
+ *out_interface = std::make_shared<IBtmUserCore>(system);
+ R_SUCCEED();
+}
+
+} // namespace Service::BTM