btm_system.cpp 941 B

1234567891011121314151617181920212223242526272829303132
  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_system.h"
  5. #include "core/hle/service/btm/btm_system_core.h"
  6. #include "core/hle/service/cmif_serialization.h"
  7. #include "core/hle/service/ipc_helpers.h"
  8. #include "core/hle/service/service.h"
  9. namespace Service::BTM {
  10. IBtmSystem::IBtmSystem(Core::System& system_) : ServiceFramework{system_, "btm:sys"} {
  11. // clang-format off
  12. static const FunctionInfo functions[] = {
  13. {0, C<&IBtmSystem::GetCore>, "GetCore"},
  14. };
  15. // clang-format on
  16. RegisterHandlers(functions);
  17. }
  18. IBtmSystem::~IBtmSystem() = default;
  19. Result IBtmSystem::GetCore(OutInterface<IBtmSystemCore> out_interface) {
  20. LOG_WARNING(Service_BTM, "called");
  21. *out_interface = std::make_shared<IBtmSystemCore>(system);
  22. R_SUCCEED();
  23. }
  24. } // namespace Service::BTM