kernel/server_session: Provide a GetName() override

Given server sessions can be given a name, we should allow retrieving
it instead of using the default implementation of GetName(), which would
just return "[UNKNOWN KERNEL OBJECT]".
This commit is contained in:
Lioncash 2019-04-03 10:35:09 -04:00
parent e796351a0d
commit a074363a5d

View file

@ -41,6 +41,10 @@ public:
return "ServerSession"; return "ServerSession";
} }
std::string GetName() const override {
return name;
}
static const HandleType HANDLE_TYPE = HandleType::ServerSession; static const HandleType HANDLE_TYPE = HandleType::ServerSession;
HandleType GetHandleType() const override { HandleType GetHandleType() const override {
return HANDLE_TYPE; return HANDLE_TYPE;