summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/vi.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-21 15:48:15 +0100
committerGitHub <noreply@github.com>2018-03-21 15:48:15 +0100
commit4721ea4523c991c2a1bd28947b45e506bc988a8d (patch)
tree23906e74e5bacd975eb6b1046fc9b4ed6290d698 /src/core/hle/service/vi/vi.h
parentMerge pull request #254 from bunnei/port-citra-renderer (diff)
parentService/vi: convert services to module (diff)
downloadyuzu-4721ea4523c991c2a1bd28947b45e506bc988a8d.tar
yuzu-4721ea4523c991c2a1bd28947b45e506bc988a8d.tar.gz
yuzu-4721ea4523c991c2a1bd28947b45e506bc988a8d.tar.bz2
yuzu-4721ea4523c991c2a1bd28947b45e506bc988a8d.tar.lz
yuzu-4721ea4523c991c2a1bd28947b45e506bc988a8d.tar.xz
yuzu-4721ea4523c991c2a1bd28947b45e506bc988a8d.tar.zst
yuzu-4721ea4523c991c2a1bd28947b45e506bc988a8d.zip
Diffstat (limited to 'src/core/hle/service/vi/vi.h')
-rw-r--r--src/core/hle/service/vi/vi.h34
1 files changed, 12 insertions, 22 deletions
diff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.h
index f6be7d1e6..985c9d27c 100644
--- a/src/core/hle/service/vi/vi.h
+++ b/src/core/hle/service/vi/vi.h
@@ -4,9 +4,6 @@
#pragma once
-#include <memory>
-#include <boost/optional.hpp>
-#include "core/hle/kernel/event.h"
#include "core/hle/service/nvflinger/nvflinger.h"
#include "core/hle/service/service.h"
@@ -17,26 +14,19 @@ struct EventType;
namespace Service {
namespace VI {
-class IApplicationDisplayService final : public ServiceFramework<IApplicationDisplayService> {
+class Module final {
public:
- IApplicationDisplayService(std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);
- ~IApplicationDisplayService() = default;
-
-private:
- void GetRelayService(Kernel::HLERequestContext& ctx);
- void GetSystemDisplayService(Kernel::HLERequestContext& ctx);
- void GetManagerDisplayService(Kernel::HLERequestContext& ctx);
- void GetIndirectDisplayTransactionService(Kernel::HLERequestContext& ctx);
- void OpenDisplay(Kernel::HLERequestContext& ctx);
- void CloseDisplay(Kernel::HLERequestContext& ctx);
- void SetLayerScalingMode(Kernel::HLERequestContext& ctx);
- void ListDisplays(Kernel::HLERequestContext& ctx);
- void OpenLayer(Kernel::HLERequestContext& ctx);
- void CreateStrayLayer(Kernel::HLERequestContext& ctx);
- void DestroyStrayLayer(Kernel::HLERequestContext& ctx);
- void GetDisplayVsyncEvent(Kernel::HLERequestContext& ctx);
-
- std::shared_ptr<NVFlinger::NVFlinger> nv_flinger;
+ class Interface : public ServiceFramework<Interface> {
+ public:
+ Interface(std::shared_ptr<Module> module, const char* name,
+ std::shared_ptr<NVFlinger::NVFlinger> nv_flinger);
+
+ void GetDisplayService(Kernel::HLERequestContext& ctx);
+
+ protected:
+ std::shared_ptr<Module> module;
+ std::shared_ptr<NVFlinger::NVFlinger> nv_flinger;
+ };
};
/// Registers all VI services with the specified service manager.