Skip to content
Snippets Groups Projects
Commit 612ce89e authored by David Marcec's avatar David Marcec
Browse files

Added forward define for ServerPort

parent f84b9ed4
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,10 @@ namespace Kernel { ...@@ -17,6 +17,10 @@ namespace Kernel {
ClientPort::ClientPort(KernelCore& kernel) : Object{kernel} {} ClientPort::ClientPort(KernelCore& kernel) : Object{kernel} {}
ClientPort::~ClientPort() = default; ClientPort::~ClientPort() = default;
SharedPtr<ServerPort> ClientPort::GetServerPort() const {
return server_port;
}
ResultVal<SharedPtr<ClientSession>> ClientPort::Connect() { ResultVal<SharedPtr<ClientSession>> ClientPort::Connect() {
// Note: Threads do not wait for the server endpoint to call // Note: Threads do not wait for the server endpoint to call
// AcceptSession before returning from this call. // AcceptSession before returning from this call.
......
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
#include <string> #include <string>
#include "common/common_types.h" #include "common/common_types.h"
#include "core/hle/kernel/object.h" #include "core/hle/kernel/object.h"
#include "core/hle/kernel/server_port.h"
#include "core/hle/result.h" #include "core/hle/result.h"
namespace Kernel { namespace Kernel {
class ClientSession; class ClientSession;
class KernelCore; class KernelCore;
class ServerPort;
class ClientPort final : public Object { class ClientPort final : public Object {
public: public:
...@@ -30,9 +30,7 @@ public: ...@@ -30,9 +30,7 @@ public:
return HANDLE_TYPE; return HANDLE_TYPE;
} }
SharedPtr<ServerPort> GetServerPort() const { SharedPtr<ServerPort> GetServerPort() const;
return server_port;
}
/** /**
* Creates a new Session pair, adds the created ServerSession to the associated ServerPort's * Creates a new Session pair, adds the created ServerSession to the associated ServerPort's
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment