vi_s.cpp 1.1 KB

123456789101112131415161718192021222324252627282930
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "common/logging/log.h"
  4. #include "core/hle/service/vi/vi.h"
  5. #include "core/hle/service/vi/vi_s.h"
  6. namespace Service::VI {
  7. VI_S::VI_S(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
  8. Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
  9. : ServiceFramework{system_, "vi:s"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{
  10. hos_binder_driver_server_} {
  11. static const FunctionInfo functions[] = {
  12. {1, &VI_S::GetDisplayService, "GetDisplayService"},
  13. {3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
  14. };
  15. RegisterHandlers(functions);
  16. }
  17. VI_S::~VI_S() = default;
  18. void VI_S::GetDisplayService(HLERequestContext& ctx) {
  19. LOG_DEBUG(Service_VI, "called");
  20. detail::GetDisplayServiceImpl(ctx, system, nv_flinger, hos_binder_driver_server,
  21. Permission::System);
  22. }
  23. } // namespace Service::VI