diff options
author | Subv <subv2112@gmail.com> | 2016-05-22 19:30:13 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-06-11 15:37:37 +0200 |
commit | 7b445ddff0be3e0210cb217c74cb34a16799ce0d (patch) | |
tree | f752a9eda53997e2268e5a5cbc534e6562c3553d /src/core/hle/kernel | |
parent | Kernel: Added ClientPort and ServerPort classes. (diff) | |
download | yuzu-7b445ddff0be3e0210cb217c74cb34a16799ce0d.tar yuzu-7b445ddff0be3e0210cb217c74cb34a16799ce0d.tar.gz yuzu-7b445ddff0be3e0210cb217c74cb34a16799ce0d.tar.bz2 yuzu-7b445ddff0be3e0210cb217c74cb34a16799ce0d.tar.lz yuzu-7b445ddff0be3e0210cb217c74cb34a16799ce0d.tar.xz yuzu-7b445ddff0be3e0210cb217c74cb34a16799ce0d.tar.zst yuzu-7b445ddff0be3e0210cb217c74cb34a16799ce0d.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/client_port.h | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/kernel.h | 3 | ||||
-rw-r--r-- | src/core/hle/kernel/server_port.cpp | 3 | ||||
-rw-r--r-- | src/core/hle/kernel/server_port.h | 5 |
4 files changed, 11 insertions, 2 deletions
diff --git a/src/core/hle/kernel/client_port.h b/src/core/hle/kernel/client_port.h index b3d15cfc5..480b6ddae 100644 --- a/src/core/hle/kernel/client_port.h +++ b/src/core/hle/kernel/client_port.h @@ -12,6 +12,8 @@ namespace Kernel { +class ServerPort; + class ClientPort : public Object { public: friend class ServerPort; diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index a53d408d4..27ba3f912 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -35,7 +35,7 @@ enum KernelHandle : Handle { enum class HandleType : u32 { Unknown = 0, - ServerPort = 1, + Session = 2, Event = 3, Mutex = 4, @@ -49,6 +49,7 @@ enum class HandleType : u32 { ResourceLimit = 12, CodeSet = 13, ClientPort = 14, + ServerPort = 15, }; enum { diff --git a/src/core/hle/kernel/server_port.cpp b/src/core/hle/kernel/server_port.cpp index ca41265ff..fcc684a20 100644 --- a/src/core/hle/kernel/server_port.cpp +++ b/src/core/hle/kernel/server_port.cpp @@ -2,8 +2,11 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <tuple> + #include "common/assert.h" +#include "core/hle/kernel/client_port.h" #include "core/hle/kernel/kernel.h" #include "core/hle/kernel/server_port.h" #include "core/hle/kernel/thread.h" diff --git a/src/core/hle/kernel/server_port.h b/src/core/hle/kernel/server_port.h index e41ef8ce4..e9c972ce6 100644 --- a/src/core/hle/kernel/server_port.h +++ b/src/core/hle/kernel/server_port.h @@ -5,6 +5,7 @@ #pragma once #include <string> +#include <tuple> #include "common/common_types.h" @@ -12,10 +13,12 @@ namespace Kernel { +class ClientPort; + class ServerPort final : public WaitObject { public: /** - * Creates a pair of a ServerPort and an associated ClientPort. + * Creates a pair of ServerPort and an associated ClientPort. * @param max_sessions Maximum number of sessions to the port * @param name Optional name of the ports * @return The created port tuple |