
#include "Dcm_Cfg_Prot.h"
#include "DcmCore_DslDsd_Inf.h"
#include "Rte_Dcm.h"
/*TESTCODE-START
#include "DcmTest.h"
TESTCODE-END*/

#if(DCM_CFG_DSPUDSSUPPORT_ENABLED != DCM_CFG_OFF)&&(DCM_CFG_DSP_REQUESTTRANSFEREXIT_ENABLED != DCM_CFG_OFF)

#define DCM_START_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
/**
 *  @ingroup DCM_TPL
 *  DcmAppl_Dcm_ProcessRequestTransferExit :-\n
 *  This API is to terminate a download or upload process. This callout is needed for the implementation of UDS service RequestTransferExit.
 *
 *  @param[in]       OpStatus                           : Opstatus passed  \n
 *  @param[in]       transferRequestParameterRecord     : TransferRequestParameterRecord from the request  \n
 *  @param[in]       transferRequestParameterRecordSize : Size of transferRequestParameterRecord in the request  \n
 *  @param[out]      transferResponseParameterRecord    : TransferResponsetParameterRecord from the request  \n
 *  @param[out]      transferResponseParameterRecordSize : Size of transferResponseParameterRecord in the request  \n
 *  @param[out]      ErrorCode            : Used to update negative response code in case of errors   \n
 *
 *  @retval          E_OK : If the upload process is successfully terminated \n
 *  @retval          E_NOT_OK : If upload process is not terminated successfully\n
 *  @retval          DCM_E_PENDING : If the termination process needs more time\n
 *
 */
//Std_ReturnType DcmAppl_Dcm_ProcessRequestTransferExit(
//                                                                Dcm_OpStatusType OpStatus,
//                                                                const uint8 * transferRequestParameterRecord,
//                                                                uint32 transferRequestParameterRecordSize,
//                                                                uint8 * transferResponseParameterRecord,
//                                                                uint32 * transferResponseParameterRecordSize,
//                                                                Dcm_NegativeResponseCodeType * ErrorCode)
//
//{
//    Std_ReturnType retVal_u8;
//    retVal_u8 = E_OK;
//    /*TESTCODE-START
//    retVal_u8 = DcmTest_DcmAppl_Dcm_ProcessRequestTransferExit(OpStatus,transferRequestParameterRecord,transferRequestParameterRecordSize,transferResponseParameterRecord,transferResponseParameterRecordSize,ErrorCode);
//    TESTCODE-END*/
//    (void)OpStatus;
//    (void)transferRequestParameterRecord;
//    (void)transferRequestParameterRecordSize;
//    (void)transferResponseParameterRecord;
//    (void)transferResponseParameterRecordSize;
//    (void)ErrorCode;
//    return retVal_u8;
//}

#define DCM_STOP_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
#endif
