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/kernel/hle_ipc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/core/hle/kernel/hle_ipc.h') diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index 48730a2b2..266fcf9c1 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -147,6 +147,18 @@ public: return domain != nullptr; } + template + SharedPtr GetCopyObject(size_t index) { + ASSERT(index < copy_objects.size()); + return DynamicObjectCast(copy_objects[index]); + } + + template + SharedPtr GetMoveObject(size_t index) { + ASSERT(index < move_objects.size()); + return DynamicObjectCast(move_objects[index]); + } + void AddMoveObject(SharedPtr object) { move_objects.emplace_back(std::move(object)); } -- cgit v1.2.3