// Copyright 2017 Citra Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #pragma once #include #include "common/common_types.h" #include "core/hle/ipc.h" #include "core/hle/kernel/thread.h" namespace Kernel { struct MappedBufferContext { IPC::MappedBufferPermissions permissions; u32 size; VAddr source_address; VAddr target_address; }; /// Performs IPC command buffer translation from one process to another. ResultCode TranslateCommandBuffer(SharedPtr src_thread, SharedPtr dst_thread, VAddr src_address, VAddr dst_address, std::vector& mapped_buffer_context, bool reply); } // namespace Kernel