ns.cpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "core/hle/service/ns/develop_interface.h"
  4. #include "core/hle/service/ns/ns.h"
  5. #include "core/hle/service/ns/pdm_qry.h"
  6. #include "core/hle/service/ns/platform_service_manager.h"
  7. #include "core/hle/service/ns/service_getter_interface.h"
  8. #include "core/hle/service/ns/system_update_interface.h"
  9. #include "core/hle/service/ns/vulnerability_manager_interface.h"
  10. #include "core/hle/service/server_manager.h"
  11. namespace Service::NS {
  12. void LoopProcess(Core::System& system) {
  13. auto server_manager = std::make_unique<ServerManager>(system);
  14. server_manager->RegisterNamedService(
  15. "ns:am2", std::make_shared<IServiceGetterInterface>(system, "ns:am2"));
  16. server_manager->RegisterNamedService(
  17. "ns:ec", std::make_shared<IServiceGetterInterface>(system, "ns:ec"));
  18. server_manager->RegisterNamedService(
  19. "ns:rid", std::make_shared<IServiceGetterInterface>(system, "ns:rid"));
  20. server_manager->RegisterNamedService(
  21. "ns:rt", std::make_shared<IServiceGetterInterface>(system, "ns:rt"));
  22. server_manager->RegisterNamedService(
  23. "ns:web", std::make_shared<IServiceGetterInterface>(system, "ns:web"));
  24. server_manager->RegisterNamedService(
  25. "ns:ro", std::make_shared<IServiceGetterInterface>(system, "ns:ro"));
  26. server_manager->RegisterNamedService("ns:dev", std::make_shared<IDevelopInterface>(system));
  27. server_manager->RegisterNamedService("ns:su", std::make_shared<ISystemUpdateInterface>(system));
  28. server_manager->RegisterNamedService("ns:vm",
  29. std::make_shared<IVulnerabilityManagerInterface>(system));
  30. server_manager->RegisterNamedService("pdm:qry", std::make_shared<PDM_QRY>(system));
  31. server_manager->RegisterNamedService("pl:s",
  32. std::make_shared<IPlatformServiceManager>(system, "pl:s"));
  33. server_manager->RegisterNamedService("pl:u",
  34. std::make_shared<IPlatformServiceManager>(system, "pl:u"));
  35. ServerManager::RunServer(std::move(server_manager));
  36. }
  37. } // namespace Service::NS