diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-20 20:34:41 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-20 22:38:32 +0200 |
commit | 90a981a03ac916557aca6fa5fb047003d3c32bf6 (patch) | |
tree | 5dd9f5e17a19bc4faa6f641a7447950d6b4cc01b /src/core/hle/kernel/hle_ipc.h | |
parent | Merge pull request #1535 from ReinUsesLisp/fixup-position (diff) | |
download | yuzu-90a981a03ac916557aca6fa5fb047003d3c32bf6.tar yuzu-90a981a03ac916557aca6fa5fb047003d3c32bf6.tar.gz yuzu-90a981a03ac916557aca6fa5fb047003d3c32bf6.tar.bz2 yuzu-90a981a03ac916557aca6fa5fb047003d3c32bf6.tar.lz yuzu-90a981a03ac916557aca6fa5fb047003d3c32bf6.tar.xz yuzu-90a981a03ac916557aca6fa5fb047003d3c32bf6.tar.zst yuzu-90a981a03ac916557aca6fa5fb047003d3c32bf6.zip |
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.h')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index 894479ee0..f01491daa 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -24,10 +24,10 @@ class ServiceFrameworkBase; namespace Kernel { class Domain; +class Event; class HandleTable; class HLERequestContext; class Process; -class Event; /** * Interface implemented by HLE Session handlers. @@ -126,13 +126,12 @@ public: u64 timeout, WakeupCallback&& callback, Kernel::SharedPtr<Kernel::Event> event = nullptr); - void ParseCommandBuffer(u32_le* src_cmdbuf, bool incoming); - /// Populates this context with data from the requesting process/thread. - ResultCode PopulateFromIncomingCommandBuffer(u32_le* src_cmdbuf, Process& src_process, - HandleTable& src_table); + ResultCode PopulateFromIncomingCommandBuffer(const HandleTable& handle_table, + u32_le* src_cmdbuf); + /// Writes data from this context back to the requesting process/thread. - ResultCode WriteToOutgoingCommandBuffer(const Thread& thread); + ResultCode WriteToOutgoingCommandBuffer(Thread& thread); u32_le GetCommand() const { return command; @@ -255,6 +254,8 @@ public: std::string Description() const; private: + void ParseCommandBuffer(const HandleTable& handle_table, u32_le* src_cmdbuf, bool incoming); + std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf; SharedPtr<Kernel::ServerSession> server_session; // TODO(yuriks): Check common usage of this and optimize size accordingly |