diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-06 07:36:50 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-06 07:36:53 +0200 |
commit | 04d265562f76a76118725927ec096faa5ac86380 (patch) | |
tree | 68f300f7b7f17715bb9cf866071d6a90ba8a9cb1 /src/core/hle/kernel/server_port.h | |
parent | Merge pull request #2317 from FernandoS27/sync (diff) | |
download | yuzu-04d265562f76a76118725927ec096faa5ac86380.tar yuzu-04d265562f76a76118725927ec096faa5ac86380.tar.gz yuzu-04d265562f76a76118725927ec096faa5ac86380.tar.bz2 yuzu-04d265562f76a76118725927ec096faa5ac86380.tar.lz yuzu-04d265562f76a76118725927ec096faa5ac86380.tar.xz yuzu-04d265562f76a76118725927ec096faa5ac86380.tar.zst yuzu-04d265562f76a76118725927ec096faa5ac86380.zip |
Diffstat (limited to 'src/core/hle/kernel/server_port.h')
-rw-r--r-- | src/core/hle/kernel/server_port.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/kernel/server_port.h b/src/core/hle/kernel/server_port.h index 76293cb8b..fef573b71 100644 --- a/src/core/hle/kernel/server_port.h +++ b/src/core/hle/kernel/server_port.h @@ -6,7 +6,7 @@ #include <memory> #include <string> -#include <tuple> +#include <utility> #include <vector> #include "common/common_types.h" #include "core/hle/kernel/object.h" @@ -23,6 +23,7 @@ class SessionRequestHandler; class ServerPort final : public WaitObject { public: using HLEHandler = std::shared_ptr<SessionRequestHandler>; + using PortPair = std::pair<SharedPtr<ServerPort>, SharedPtr<ClientPort>>; /** * Creates a pair of ServerPort and an associated ClientPort. @@ -32,8 +33,8 @@ public: * @param name Optional name of the ports * @return The created port tuple */ - static std::tuple<SharedPtr<ServerPort>, SharedPtr<ClientPort>> CreatePortPair( - KernelCore& kernel, u32 max_sessions, std::string name = "UnknownPort"); + static PortPair CreatePortPair(KernelCore& kernel, u32 max_sessions, + std::string name = "UnknownPort"); std::string GetTypeName() const override { return "ServerPort"; |