|
|
@ -192,6 +192,13 @@ void SendParameter(Service::Interface* self) {
|
|
|
|
|
|
|
|
|
|
|
|
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
|
|
|
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// A new parameter can not be sent if the previous one hasn't been consumed yet
|
|
|
|
|
|
|
|
if (next_parameter) {
|
|
|
|
|
|
|
|
rb.Push(ResultCode(ErrCodes::ParameterPresent, ErrorModule::Applet,
|
|
|
|
|
|
|
|
ErrorSummary::InvalidState, ErrorLevel::Status));
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (dest_applet == nullptr) {
|
|
|
|
if (dest_applet == nullptr) {
|
|
|
|
LOG_ERROR(Service_APT, "Unknown applet id=0x%08X", dst_app_id);
|
|
|
|
LOG_ERROR(Service_APT, "Unknown applet id=0x%08X", dst_app_id);
|
|
|
|
rb.Push<u32>(-1); // TODO(Subv): Find the right error code
|
|
|
|
rb.Push<u32>(-1); // TODO(Subv): Find the right error code
|
|
|
@ -208,8 +215,8 @@ void SendParameter(Service::Interface* self) {
|
|
|
|
|
|
|
|
|
|
|
|
rb.Push(dest_applet->ReceiveParameter(param));
|
|
|
|
rb.Push(dest_applet->ReceiveParameter(param));
|
|
|
|
|
|
|
|
|
|
|
|
LOG_WARNING(Service_APT,
|
|
|
|
LOG_DEBUG(Service_APT,
|
|
|
|
"(STUBBED) called src_app_id=0x%08X, dst_app_id=0x%08X, signal_type=0x%08X,"
|
|
|
|
"called src_app_id=0x%08X, dst_app_id=0x%08X, signal_type=0x%08X,"
|
|
|
|
"buffer_size=0x%08X, handle=0x%08X, size=0x%08zX, in_param_buffer_ptr=0x%08X",
|
|
|
|
"buffer_size=0x%08X, handle=0x%08X, size=0x%08zX, in_param_buffer_ptr=0x%08X",
|
|
|
|
src_app_id, dst_app_id, signal_type, buffer_size, handle, size, buffer);
|
|
|
|
src_app_id, dst_app_id, signal_type, buffer_size, handle, size, buffer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|