summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-07 02:44:06 +0200
committerbunnei <bunneidev@gmail.com>2022-04-08 23:13:22 +0200
commita7f73d606f596ab73cf794a76c06cd955033cada (patch)
tree55f4a3d1decb97c548f6ab33128aef4566f18c7c /src/core/hle/kernel/kernel.h
parenthle: kernel: k_server_port: Release ref-counted host emulation members on Destroy. (diff)
downloadyuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar
yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.gz
yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.bz2
yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.lz
yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.xz
yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.zst
yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/kernel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 24e26fa44..d709c368b 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -195,6 +195,14 @@ public:
/// Opens a port to a service previously registered with RegisterNamedService.
KClientPort* CreateNamedServicePort(std::string name);
+ /// Registers a server session or port with the gobal emulation state, to be freed on shutdown.
+ /// This is necessary because we do not emulate processes for HLE sessions and ports.
+ void RegisterServerObject(KAutoObject* server_object);
+
+ /// Unregisters a server session or port previously registered with RegisterServerSession when
+ /// it was destroyed during the current emulation session.
+ void UnregisterServerObject(KAutoObject* server_object);
+
/// Registers all kernel objects with the global emulation state, this is purely for tracking
/// leaks after emulation has been shutdown.
void RegisterKernelObject(KAutoObject* object);