vi_u.cpp 939 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/logging/log.h"
  5. #include "core/hle/ipc_helpers.h"
  6. #include "core/hle/service/vi/vi.h"
  7. #include "core/hle/service/vi/vi_u.h"
  8. namespace Service {
  9. namespace VI {
  10. void VI_U::GetDisplayService(Kernel::HLERequestContext& ctx) {
  11. LOG_WARNING(Service_VI, "(STUBBED) called");
  12. IPC::ResponseBuilder rb{ctx, 2, 0, 1};
  13. rb.Push(RESULT_SUCCESS);
  14. rb.PushIpcInterface<IApplicationDisplayService>(nv_flinger);
  15. }
  16. VI_U::VI_U(std::shared_ptr<NVFlinger::NVFlinger> nv_flinger)
  17. : ServiceFramework("vi:u"), nv_flinger(std::move(nv_flinger)) {
  18. static const FunctionInfo functions[] = {
  19. {0, &VI_U::GetDisplayService, "GetDisplayService"},
  20. {3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
  21. };
  22. RegisterHandlers(functions);
  23. }
  24. } // namespace VI
  25. } // namespace Service