aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/ipc_helpers.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-07 09:22:20 -0500
committerbunnei <bunneidev@gmail.com>2018-01-07 17:11:51 -0500
commit32847d8b860af1210612027680eea1cbf9765b51 (patch)
tree234cabf0b424e2863540f704752e2838c914d491 /src/core/hle/ipc_helpers.h
parent7e3561b1cd3175d4e3104f03498adf03aca469bf (diff)
IPC: Add functions to read the input move/copy objects from an IPC request.
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
-rw-r--r--src/core/hle/ipc_helpers.h16
1 files changed, 16 insertions, 0 deletions
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 <typename T>
T PopRaw();
+
+ template <typename T>
+ Kernel::SharedPtr<T> GetMoveObject(size_t index);
+
+ template <typename T>
+ Kernel::SharedPtr<T> GetCopyObject(size_t index);
};
/// Pop ///
@@ -293,4 +299,14 @@ void RequestParser::Pop(First& first_value, Other&... other_values) {
Pop(other_values...);
}
+template <typename T>
+Kernel::SharedPtr<T> RequestParser::GetMoveObject(size_t index) {
+ return context->GetMoveObject<T>(index);
+}
+
+template <typename T>
+Kernel::SharedPtr<T> RequestParser::GetCopyObject(size_t index) {
+ return context->GetCopyObject<T>(index);
+}
+
} // namespace IPC