summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/client_session.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-12-05 17:02:08 +0100
committerSubv <subv2112@gmail.com>2016-12-05 17:02:08 +0100
commitdd8887c8cfbb6d3010dde240278a3d4018c5dd85 (patch)
tree9990a463d5daccdab41ae9c90a5c698aed0d4795 /src/core/hle/kernel/client_session.h
parentDeclare empty ServerSession and ClientSession constructors as default. (diff)
downloadyuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.gz
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.bz2
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.lz
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.xz
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.zst
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/client_session.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/core/hle/kernel/client_session.h b/src/core/hle/kernel/client_session.h
index e34528301..45f479901 100644
--- a/src/core/hle/kernel/client_session.h
+++ b/src/core/hle/kernel/client_session.h
@@ -17,17 +17,12 @@ class ServerSession;
class ClientSession final : public Object {
public:
- /**
- * 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(SharedPtr<ServerSession> server_session, std::string name = "Unknown");
+ friend class ServerSession;
std::string GetTypeName() const override {
return "ClientSession";
}
+
std::string GetName() const override {
return name;
}
@@ -38,10 +33,10 @@ public:
}
/**
- * Handle a SyncRequest from the emulated application.
+ * Sends an SyncRequest from the current emulated thread.
* @return ResultCode of the operation.
*/
- ResultCode HandleSyncRequest();
+ ResultCode SendSyncRequest();
std::string name; ///< Name of client port (optional)
SharedPtr<ServerSession> server_session; ///< The server session associated with this client session.
@@ -49,6 +44,14 @@ public:
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(SharedPtr<ServerSession> server_session, std::string name = "Unknown");
};
} // namespace