diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-21 03:26:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-21 03:26:27 +0200 |
commit | 2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1 (patch) | |
tree | eb3a8d9007462f1864174ea4ffe9e5a80d56c9d5 /src/core/hle/service/sm/sm.h | |
parent | Merge pull request #340 from mailwl/vi-update (diff) | |
parent | core: Relocate g_service_manager to the System class (diff) | |
download | yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.tar yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.tar.gz yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.tar.bz2 yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.tar.lz yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.tar.xz yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.tar.zst yuzu-2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1.zip |
Diffstat (limited to 'src/core/hle/service/sm/sm.h')
-rw-r--r-- | src/core/hle/service/sm/sm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.h index 40421cfd5..13f5c4c28 100644 --- a/src/core/hle/service/sm/sm.h +++ b/src/core/hle/service/sm/sm.h @@ -23,7 +23,7 @@ namespace Service::SM { class SM final : public ServiceFramework<SM> { public: SM(std::shared_ptr<ServiceManager> service_manager); - ~SM() = default; + ~SM() override; private: void Initialize(Kernel::HLERequestContext& ctx); @@ -44,6 +44,8 @@ class ServiceManager { public: static void InstallInterfaces(std::shared_ptr<ServiceManager> self); + ~ServiceManager(); + ResultVal<Kernel::SharedPtr<Kernel::ServerPort>> RegisterService(std::string name, unsigned int max_sessions); ResultVal<Kernel::SharedPtr<Kernel::ClientPort>> GetServicePort(const std::string& name); @@ -59,6 +61,4 @@ private: std::unordered_map<std::string, Kernel::SharedPtr<Kernel::ClientPort>> registered_services; }; -extern std::shared_ptr<ServiceManager> g_service_manager; - } // namespace Service::SM |