diff options
author | bunnei <bunneidev@gmail.com> | 2016-06-12 04:46:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-12 04:46:35 +0200 |
commit | 78f2b85fe6df35e3501f6dbd81ceea536fcdb8a1 (patch) | |
tree | 73078fff8f77a252dcc51ec39e84b5606ad30133 /src/core/hle/kernel/client_port.h | |
parent | Merge pull request #1899 from wwylele/hid-cmath (diff) | |
parent | Kernel/SVC: Implemented svcCreatePort. (diff) | |
download | yuzu-78f2b85fe6df35e3501f6dbd81ceea536fcdb8a1.tar yuzu-78f2b85fe6df35e3501f6dbd81ceea536fcdb8a1.tar.gz yuzu-78f2b85fe6df35e3501f6dbd81ceea536fcdb8a1.tar.bz2 yuzu-78f2b85fe6df35e3501f6dbd81ceea536fcdb8a1.tar.lz yuzu-78f2b85fe6df35e3501f6dbd81ceea536fcdb8a1.tar.xz yuzu-78f2b85fe6df35e3501f6dbd81ceea536fcdb8a1.tar.zst yuzu-78f2b85fe6df35e3501f6dbd81ceea536fcdb8a1.zip |
Diffstat (limited to 'src/core/hle/kernel/client_port.h')
-rw-r--r-- | src/core/hle/kernel/client_port.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/hle/kernel/client_port.h b/src/core/hle/kernel/client_port.h new file mode 100644 index 000000000..480b6ddae --- /dev/null +++ b/src/core/hle/kernel/client_port.h @@ -0,0 +1,36 @@ +// Copyright 2016 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include <string> + +#include "common/common_types.h" + +#include "core/hle/kernel/kernel.h" + +namespace Kernel { + +class ServerPort; + +class ClientPort : public Object { +public: + friend class ServerPort; + std::string GetTypeName() const override { return "ClientPort"; } + std::string GetName() const override { return name; } + + static const HandleType HANDLE_TYPE = HandleType::ClientPort; + HandleType GetHandleType() const override { return HANDLE_TYPE; } + + SharedPtr<ServerPort> server_port; ///< ServerPort associated with this client port. + u32 max_sessions; ///< Maximum number of simultaneous sessions the port can have + u32 active_sessions; ///< Number of currently open sessions to this port + std::string name; ///< Name of client port (optional) + +protected: + ClientPort(); + ~ClientPort() override; +}; + +} // namespace |