summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/service.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-24 23:31:58 +0100
committerGitHub <noreply@github.com>2020-11-24 23:31:58 +0100
commit7791cc8c2e585dcc377e22a26f548db914250a5d (patch)
tree81273d60fee9da0146317881711b6f0b43650355 /src/core/hle/service/service.h
parentMerge pull request #3681 from lioncash/component (diff)
downloadyuzu-7791cc8c2e585dcc377e22a26f548db914250a5d.tar
yuzu-7791cc8c2e585dcc377e22a26f548db914250a5d.tar.gz
yuzu-7791cc8c2e585dcc377e22a26f548db914250a5d.tar.bz2
yuzu-7791cc8c2e585dcc377e22a26f548db914250a5d.tar.lz
yuzu-7791cc8c2e585dcc377e22a26f548db914250a5d.tar.xz
yuzu-7791cc8c2e585dcc377e22a26f548db914250a5d.tar.zst
yuzu-7791cc8c2e585dcc377e22a26f548db914250a5d.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/service.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h
index a01ef3353..ed4792289 100644
--- a/src/core/hle/service/service.h
+++ b/src/core/hle/service/service.h
@@ -29,7 +29,11 @@ namespace Service {
namespace FileSystem {
class FileSystemController;
-} // namespace FileSystem
+}
+
+namespace NVFlinger {
+class NVFlinger;
+}
namespace SM {
class ServiceManager;
@@ -181,10 +185,17 @@ private:
}
};
-/// Initialize ServiceManager
-void Init(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system);
+/**
+ * The purpose of this class is to own any objects that need to be shared across the other service
+ * implementations. Will be torn down when the global system instance is shutdown.
+ */
+class Services final {
+public:
+ explicit Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system);
+ ~Services();
-/// Shutdown ServiceManager
-void Shutdown();
+private:
+ std::unique_ptr<NVFlinger::NVFlinger> nv_flinger;
+};
} // namespace Service