|
@@ -1,19 +1,22 @@
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
+#include "core/hle/service/cmif_serialization.h"
|
|
|
|
|
+#include "core/hle/service/vi/application_display_service.h"
|
|
|
#include "core/hle/service/vi/manager_root_service.h"
|
|
#include "core/hle/service/vi/manager_root_service.h"
|
|
|
|
|
+#include "core/hle/service/vi/service_creator.h"
|
|
|
#include "core/hle/service/vi/vi.h"
|
|
#include "core/hle/service/vi/vi.h"
|
|
|
#include "core/hle/service/vi/vi_types.h"
|
|
#include "core/hle/service/vi/vi_types.h"
|
|
|
|
|
|
|
|
namespace Service::VI {
|
|
namespace Service::VI {
|
|
|
|
|
|
|
|
IManagerRootService::IManagerRootService(
|
|
IManagerRootService::IManagerRootService(
|
|
|
- Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
|
|
|
|
|
- Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
|
|
|
|
|
- : ServiceFramework{system_, "vi:m"}, nv_flinger{nv_flinger_},
|
|
|
|
|
- hos_binder_driver_server{hos_binder_driver_server_} {
|
|
|
|
|
|
|
+ Core::System& system_, Nvnflinger::Nvnflinger& nvnflinger,
|
|
|
|
|
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server)
|
|
|
|
|
+ : ServiceFramework{system_, "vi:m"}, m_nvnflinger{nvnflinger}, m_hos_binder_driver_server{
|
|
|
|
|
+ hos_binder_driver_server} {
|
|
|
static const FunctionInfo functions[] = {
|
|
static const FunctionInfo functions[] = {
|
|
|
- {2, &IManagerRootService::GetDisplayService, "GetDisplayService"},
|
|
|
|
|
|
|
+ {2, C<&IManagerRootService::GetDisplayService>, "GetDisplayService"},
|
|
|
{3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
|
|
{3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
|
|
|
{100, nullptr, "PrepareFatal"},
|
|
{100, nullptr, "PrepareFatal"},
|
|
|
{101, nullptr, "ShowFatal"},
|
|
{101, nullptr, "ShowFatal"},
|
|
@@ -25,11 +28,11 @@ IManagerRootService::IManagerRootService(
|
|
|
|
|
|
|
|
IManagerRootService::~IManagerRootService() = default;
|
|
IManagerRootService::~IManagerRootService() = default;
|
|
|
|
|
|
|
|
-void IManagerRootService::GetDisplayService(HLERequestContext& ctx) {
|
|
|
|
|
|
|
+Result IManagerRootService::GetDisplayService(
|
|
|
|
|
+ Out<SharedPointer<IApplicationDisplayService>> out_application_display_service, Policy policy) {
|
|
|
LOG_DEBUG(Service_VI, "called");
|
|
LOG_DEBUG(Service_VI, "called");
|
|
|
-
|
|
|
|
|
- detail::GetDisplayServiceImpl(ctx, system, nv_flinger, hos_binder_driver_server,
|
|
|
|
|
- Permission::Manager);
|
|
|
|
|
|
|
+ R_RETURN(GetApplicationDisplayService(out_application_display_service, system, m_nvnflinger,
|
|
|
|
|
+ m_hos_binder_driver_server, Permission::Manager, policy));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} // namespace Service::VI
|
|
} // namespace Service::VI
|