diff options
| author | 2024-02-14 23:44:05 -0500 | |
|---|---|---|
| committer | 2024-02-17 18:08:38 -0500 | |
| commit | 812f23d05c77fb10407546c3e7a95447fcbea395 (patch) | |
| tree | bbfb035c35ccffb6dbe0995002c2937bd94edc2d /src/core/hle/service/services.h | |
| parent | vi: move shared buffer management from nvnflinger (diff) | |
| download | yuzu-812f23d05c77fb10407546c3e7a95447fcbea395.tar.gz yuzu-812f23d05c77fb10407546c3e7a95447fcbea395.tar.xz yuzu-812f23d05c77fb10407546c3e7a95447fcbea395.zip | |
vi: manage resources independently of nvnflinger and refactor
Diffstat (limited to 'src/core/hle/service/services.h')
| -rw-r--r-- | src/core/hle/service/services.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/hle/service/services.h b/src/core/hle/service/services.h new file mode 100644 index 000000000..a99fa1e53 --- /dev/null +++ b/src/core/hle/service/services.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "common/polyfill_thread.h" | ||
| 7 | #include "core/hle/service/sm/sm.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | |||
| 11 | /** | ||
| 12 | * The purpose of this class is to own any objects that need to be shared across the other service | ||
| 13 | * implementations. Will be torn down when the global system instance is shutdown. | ||
| 14 | */ | ||
| 15 | class Services final { | ||
| 16 | public: | ||
| 17 | explicit Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system, | ||
| 18 | std::stop_token token); | ||
| 19 | ~Services(); | ||
| 20 | }; | ||
| 21 | |||
| 22 | } // namespace Service | ||