diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-10-06 09:47:33 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-10-06 09:47:33 +0200 |
commit | 612ce89ecaa3588a46f222d178673f4ee6c5637d (patch) | |
tree | 1e95fb85e0f7cfe1ed8ed863cf2bac6170de7f91 | |
parent | Ported #4296 from citra (diff) | |
download | yuzu-612ce89ecaa3588a46f222d178673f4ee6c5637d.tar yuzu-612ce89ecaa3588a46f222d178673f4ee6c5637d.tar.gz yuzu-612ce89ecaa3588a46f222d178673f4ee6c5637d.tar.bz2 yuzu-612ce89ecaa3588a46f222d178673f4ee6c5637d.tar.lz yuzu-612ce89ecaa3588a46f222d178673f4ee6c5637d.tar.xz yuzu-612ce89ecaa3588a46f222d178673f4ee6c5637d.tar.zst yuzu-612ce89ecaa3588a46f222d178673f4ee6c5637d.zip |
-rw-r--r-- | src/core/hle/kernel/client_port.cpp | 4 | ||||
-rw-r--r-- | src/core/hle/kernel/client_port.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/kernel/client_port.cpp b/src/core/hle/kernel/client_port.cpp index 873d6c516..d4c91d529 100644 --- a/src/core/hle/kernel/client_port.cpp +++ b/src/core/hle/kernel/client_port.cpp @@ -17,6 +17,10 @@ namespace Kernel { ClientPort::ClientPort(KernelCore& kernel) : Object{kernel} {} ClientPort::~ClientPort() = default; +SharedPtr<ServerPort> ClientPort::GetServerPort() const { + return server_port; +} + ResultVal<SharedPtr<ClientSession>> ClientPort::Connect() { // Note: Threads do not wait for the server endpoint to call // AcceptSession before returning from this call. diff --git a/src/core/hle/kernel/client_port.h b/src/core/hle/kernel/client_port.h index a82b29417..6cd607206 100644 --- a/src/core/hle/kernel/client_port.h +++ b/src/core/hle/kernel/client_port.h @@ -7,13 +7,13 @@ #include <string> #include "common/common_types.h" #include "core/hle/kernel/object.h" -#include "core/hle/kernel/server_port.h" #include "core/hle/result.h" namespace Kernel { class ClientSession; class KernelCore; +class ServerPort; class ClientPort final : public Object { public: @@ -30,9 +30,7 @@ public: return HANDLE_TYPE; } - SharedPtr<ServerPort> GetServerPort() const { - return server_port; - } + SharedPtr<ServerPort> GetServerPort() const; /** * Creates a new Session pair, adds the created ServerSession to the associated ServerPort's |