From 32847d8b860af1210612027680eea1cbf9765b51 Mon Sep 17 00:00:00 2001 From: Subv Date: Sun, 7 Jan 2018 09:22:20 -0500 Subject: IPC: Add functions to read the input move/copy objects from an IPC request. --- src/core/hle/ipc_helpers.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/core/hle/ipc_helpers.h') diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 368b50011..e5b296d60 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -233,6 +233,12 @@ public: */ template T PopRaw(); + + template + Kernel::SharedPtr GetMoveObject(size_t index); + + template + Kernel::SharedPtr GetCopyObject(size_t index); }; /// Pop /// @@ -293,4 +299,14 @@ void RequestParser::Pop(First& first_value, Other&... other_values) { Pop(other_values...); } +template +Kernel::SharedPtr RequestParser::GetMoveObject(size_t index) { + return context->GetMoveObject(index); +} + +template +Kernel::SharedPtr RequestParser::GetCopyObject(size_t index) { + return context->GetCopyObject(index); +} + } // namespace IPC -- cgit v1.2.3