IPC: Add functions to read the input move/copy objects from an IPC request.

This commit is contained in:
Subv
2018-01-07 09:22:20 -05:00
committed by bunnei
parent 7e3561b1cd
commit 32847d8b86
3 changed files with 42 additions and 2 deletions

View File

@ -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