diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-16 19:11:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 19:11:02 +0100 |
commit | 6e2678a42cb4a0ad02a7c8959621b0c98353c572 (patch) | |
tree | e1d71c4545dacdc7940c2a8b67ea534c6e52d58a /src/core/hle/service/vi/application_root_service.h | |
parent | Merge pull request #12996 from german77/settings-ipc (diff) | |
parent | vi: rewrite IApplicationDisplayService (diff) | |
download | yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.gz yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.bz2 yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.lz yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.xz yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.zst yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.zip |
Diffstat (limited to 'src/core/hle/service/vi/application_root_service.h')
-rw-r--r-- | src/core/hle/service/vi/application_root_service.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/application_root_service.h b/src/core/hle/service/vi/application_root_service.h new file mode 100644 index 000000000..9dbf28cb4 --- /dev/null +++ b/src/core/hle/service/vi/application_root_service.h @@ -0,0 +1,39 @@ +// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "core/hle/service/cmif_types.h" +#include "core/hle/service/service.h" + +namespace Core { +class System; +} + +namespace Service::Nvnflinger { +class HosBinderDriverServer; +class Nvnflinger; +} // namespace Service::Nvnflinger + +namespace Service::VI { + +class IApplicationDisplayService; +enum class Policy : u32; + +class IApplicationRootService final : public ServiceFramework<IApplicationRootService> { +public: + explicit IApplicationRootService(Core::System& system_, Nvnflinger::Nvnflinger& nvnflinger, + Nvnflinger::HosBinderDriverServer& hos_binder_driver_server); + ~IApplicationRootService() override; + +private: + Result GetDisplayService( + Out<SharedPointer<IApplicationDisplayService>> out_application_display_service, + Policy policy); + +private: + Nvnflinger::Nvnflinger& m_nvnflinger; + Nvnflinger::HosBinderDriverServer& m_hos_binder_driver_server; +}; + +} // namespace Service::VI |