Service: Make service registration part of the sm implementation

Also enhances the GetServiceHandle implementation to be more accurate.
This commit is contained in:
Yuri Kunde Schlesner 2017-06-05 23:31:59 -07:00
parent e5a59ef27c
commit 23ec6b3d8f
6 changed files with 151 additions and 28 deletions

View file

@ -107,8 +107,6 @@ void Shutdown();
/// Map of named ports managed by the kernel, which can be retrieved using the ConnectToPort SVC.
extern std::unordered_map<std::string, Kernel::SharedPtr<Kernel::ClientPort>> g_kernel_named_ports;
/// Map of services registered with the "srv:" service, retrieved using GetServiceHandle.
extern std::unordered_map<std::string, Kernel::SharedPtr<Kernel::ClientPort>> g_srv_services;
/// Adds a service to the services table
void AddService(Interface* interface_);