diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-22 02:18:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 02:18:16 +0200 |
commit | cc566dadd8cd310658785b87b1692880ce51eeda (patch) | |
tree | 07136b798781adb9d864115f338eb62d09147949 /src/core/hle/kernel/client_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 yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.tar.gz yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.tar.bz2 yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.tar.lz yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.tar.xz yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.tar.zst yuzu-cc566dadd8cd310658785b87b1692880ce51eeda.zip |
Diffstat (limited to 'src/core/hle/kernel/client_session.h')
-rw-r--r-- | src/core/hle/kernel/client_session.h | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/core/hle/kernel/client_session.h b/src/core/hle/kernel/client_session.h index ed468dec6..9f3adb72b 100644 --- a/src/core/hle/kernel/client_session.h +++ b/src/core/hle/kernel/client_session.h @@ -14,12 +14,7 @@ namespace Kernel { class ServerSession; - -enum class SessionStatus { - Open = 1, - ClosedByClient = 2, - ClosedBYServer = 3, -}; +class Session; class ClientSession final : public Object { public: @@ -44,22 +39,14 @@ public: */ ResultCode SendSyncRequest(); - std::string name; ///< Name of client port (optional) - ServerSession* server_session; ///< The server session associated with this client session. - SessionStatus session_status; ///< The session's current status. + std::string name; ///< Name of client port (optional) + + /// The parent session, which links to the server endpoint. + std::shared_ptr<Session> parent; private: ClientSession(); ~ClientSession() override; - - /** - * Creates a client session. - * @param server_session The server session associated with this client session - * @param name Optional name of client session - * @return The created client session - */ - static ResultVal<SharedPtr<ClientSession>> Create(ServerSession* server_session, - std::string name = "Unknown"); }; } // namespace |