mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 03:58:08 -05:00
IPC: Add functions to read the input move/copy objects from an IPC request.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user