src/lib/occlib/ipc_core.c
////////////////////////////////////////////////////////////////////////////////
/// Send a command message back to the sender as a response message with status.
///
Send a command message back to the sender as a response message with status.
Send a command message back to the sender as a response message with status .
int ipc_send_rsp(ipc_msg_t* rsp, uint32_t ipc_rc)
{
    int rc;
    if(rsp->func_id.active_flag)
    {
        rsp->func_id.response_flag = 1;
        rsp->ipc_rc = ipc_rc;
        rc = ipc_send_msg(rsp, rsp->func_id.sender_id);
    }
    else
    {
        rc = IPC_RC_MSG_NOT_ACTIVE;
    }
    return rc;
}
int ipc_send_rsp ( ipc_msg_t * rsp , uint32_t ipc_rc ) { int rc ; if ( rsp -> func_id . active_flag ) { rsp -> func_id . response_flag = 1 ; rsp -> ipc_rc = ipc_rc ; rc = ipc_send_msg ( rsp , rsp -> func_id . sender_id ) ; } else { rc = IPC_RC_MSG_NOT_ACTIVE ; } return rc ; }
Send a command message back to the sender as a response message with status.
Send a command message back to the sender as a response message with status .