diff options
| author | 2017-05-21 17:18:16 -0700 | |
|---|---|---|
| committer | 2017-05-21 17:18:16 -0700 | |
| commit | cc566dadd8cd310658785b87b1692880ce51eeda (patch) | |
| tree | 07136b798781adb9d864115f338eb62d09147949 /src/core/hle/kernel/session.h | |
| parent | Merge pull request #2694 from Subv/vfp_vsub_ftz (diff) | |
| parent | Kernel/Sessions: Remove the ClientSession::Create function. (diff) | |
| download | yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.tar.gz yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.tar.xz yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.zip | |
Merge pull request #2406 from Subv/session_disconnect
Kernel: Properly update port counters on session disconnection.
Diffstat (limited to 'src/core/hle/kernel/session.h')
| -rw-r--r-- | src/core/hle/kernel/session.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/hle/kernel/session.h b/src/core/hle/kernel/session.h new file mode 100644 index 000000000..a45e78022 --- /dev/null +++ b/src/core/hle/kernel/session.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/kernel/kernel.h" | ||
| 8 | |||
| 9 | namespace Kernel { | ||
| 10 | |||
| 11 | class ClientSession; | ||
| 12 | class ClientPort; | ||
| 13 | class ServerSession; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * Parent structure to link the client and server endpoints of a session with their associated | ||
| 17 | * client port. The client port need not exist, as is the case for portless sessions like the | ||
| 18 | * FS File and Directory sessions. When one of the endpoints of a session is destroyed, its | ||
| 19 | * corresponding field in this structure will be set to nullptr. | ||
| 20 | */ | ||
| 21 | class Session final { | ||
| 22 | public: | ||
| 23 | ClientSession* client = nullptr; ///< The client endpoint of the session. | ||
| 24 | ServerSession* server = nullptr; ///< The server endpoint of the session. | ||
| 25 | SharedPtr<ClientPort> port; ///< The port that this session is associated with (optional). | ||
| 26 | }; | ||
| 27 | } | ||