diff options
author | Lioncash <mathew1800@gmail.com> | 2020-09-17 16:43:54 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-09-17 16:43:54 +0200 |
commit | 78b1bc3b619dd441d10f1131bca7ccf260ed4e80 (patch) | |
tree | 394f464eea66ce00ea7a8092d73f337a1470198c /src/core/hle/service/sm/sm.h | |
parent | Merge pull request #4653 from ReinUsesLisp/gc-warns (diff) | |
download | yuzu-78b1bc3b619dd441d10f1131bca7ccf260ed4e80.tar yuzu-78b1bc3b619dd441d10f1131bca7ccf260ed4e80.tar.gz yuzu-78b1bc3b619dd441d10f1131bca7ccf260ed4e80.tar.bz2 yuzu-78b1bc3b619dd441d10f1131bca7ccf260ed4e80.tar.lz yuzu-78b1bc3b619dd441d10f1131bca7ccf260ed4e80.tar.xz yuzu-78b1bc3b619dd441d10f1131bca7ccf260ed4e80.tar.zst yuzu-78b1bc3b619dd441d10f1131bca7ccf260ed4e80.zip |
Diffstat (limited to 'src/core/hle/service/sm/sm.h')
-rw-r--r-- | src/core/hle/service/sm/sm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.h index aabf166b7..6790c86f0 100644 --- a/src/core/hle/service/sm/sm.h +++ b/src/core/hle/service/sm/sm.h @@ -48,11 +48,11 @@ class ServiceManager { public: static void InstallInterfaces(std::shared_ptr<ServiceManager> self, Kernel::KernelCore& kernel); - ServiceManager(); + explicit ServiceManager(Kernel::KernelCore& kernel_); ~ServiceManager(); ResultVal<std::shared_ptr<Kernel::ServerPort>> RegisterService(std::string name, - unsigned int max_sessions); + u32 max_sessions); ResultCode UnregisterService(const std::string& name); ResultVal<std::shared_ptr<Kernel::ClientPort>> GetServicePort(const std::string& name); ResultVal<std::shared_ptr<Kernel::ClientSession>> ConnectToService(const std::string& name); @@ -79,6 +79,9 @@ private: /// Map of registered services, retrieved using GetServicePort or ConnectToService. std::unordered_map<std::string, std::shared_ptr<Kernel::ClientPort>> registered_services; + + /// Kernel context + Kernel::KernelCore& kernel; }; } // namespace Service::SM |