btm_user.cpp 827 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-3.0-or-later
  3. #include "common/logging/log.h"
  4. #include "core/hle/service/btm/btm_user.h"
  5. #include "core/hle/service/btm/btm_user_core.h"
  6. #include "core/hle/service/cmif_serialization.h"
  7. namespace Service::BTM {
  8. IBtmUser::IBtmUser(Core::System& system_) : ServiceFramework{system_, "btm:u"} {
  9. // clang-format off
  10. static const FunctionInfo functions[] = {
  11. {0, C<&IBtmUser::GetCore>, "GetCore"},
  12. };
  13. // clang-format on
  14. RegisterHandlers(functions);
  15. }
  16. IBtmUser::~IBtmUser() = default;
  17. Result IBtmUser::GetCore(OutInterface<IBtmUserCore> out_interface) {
  18. LOG_WARNING(Service_BTM, "called");
  19. *out_interface = std::make_shared<IBtmUserCore>(system);
  20. R_SUCCEED();
  21. }
  22. } // namespace Service::BTM