summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-07-03 00:19:04 +0200
committerbunnei <bunneidev@gmail.com>2021-07-21 03:54:56 +0200
commit52caa52cc2e47d426b5af38fd8439da237836e0e (patch)
tree1412e9e92f8f3f1bd67d2d237234d149011a55d2 /src/core/hle/kernel/kernel.h
parenthle: kernel: KProcess: Change process termination assert to a warning. (diff)
downloadyuzu-52caa52cc2e47d426b5af38fd8439da237836e0e.tar
yuzu-52caa52cc2e47d426b5af38fd8439da237836e0e.tar.gz
yuzu-52caa52cc2e47d426b5af38fd8439da237836e0e.tar.bz2
yuzu-52caa52cc2e47d426b5af38fd8439da237836e0e.tar.lz
yuzu-52caa52cc2e47d426b5af38fd8439da237836e0e.tar.xz
yuzu-52caa52cc2e47d426b5af38fd8439da237836e0e.tar.zst
yuzu-52caa52cc2e47d426b5af38fd8439da237836e0e.zip
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index b669ca74e..3a6db0b1c 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -45,6 +45,7 @@ class KPort;
class KProcess;
class KResourceLimit;
class KScheduler;
+class KServerSession;
class KSession;
class KSharedMemory;
class KThread;
@@ -185,6 +186,14 @@ public:
/// Opens a port to a service previously registered with RegisterNamedService.
KClientPort* CreateNamedServicePort(std::string name);
+ /// Registers a server session with the gobal emulation state, to be freed on shutdown. This is
+ /// necessary because we do not emulate processes for HLE sessions.
+ void RegisterServerSession(KServerSession* server_session);
+
+ /// Unregisters a server session previously registered with RegisterServerSession when it was
+ /// destroyed during the current emulation session.
+ void UnregisterServerSession(KServerSession* server_session);
+
/// Registers all kernel objects with the global emulation state, this is purely for tracking
/// leaks after emulation has been shutdown.
void RegisterKernelObject(KAutoObject* object);