
#ifdef DX_CC5_SEP_PLAT
#include "MW_ATP_defines.h"
#include "MW_ATP_define_flags.h"
#include "MW_ATP_UTIL_funcs.h"
#endif
#include "drmcommon.h"
#include "DX_VOS_Mem.h"
#include "DX_VOS_File.h"

extern DRM_RESULT WMDRM_TST_menu (DxUint32_t argc, DxChar* argv[]);
DxError_t  WMDRM_TST_Error;
#ifdef DX_CC5_SEP_PLAT
/*case of WMDRM over simulation*/
DRM_RESULT main (DxUint32_t argc, DxChar* argv[])
#else
/*case of WMDRM over CC5*/
#if  WMDRM_BASE_TST
DRM_RESULT main (DxUint32_t argc, DxChar* argv[])
#else
DRM_RESULT WMDRM_ATP_main (DxUint32_t argc, DxChar* argv[])
#endif //WMDRM_BASE_TST
#endif //DX_CC5_SEP_PLAT
{

#ifdef DX_CC5_SEP_PLAT
	/* Handle Command Line Arguments */
    WMDRM_TST_Error = MW_ATP_UTIL_ParseArgs(argc,argv);
    WMDRM_TST_Error = TST_ATP_CheckErrorReturn(TST_ATP_Error,
                                             "MW_ATP_UTIL_ParseArgs",
                                             "!!!!!!!!!",
                                             "!!!!!!!!!");
	MW_ATP_RETURN_ON_FAILURE(WMDRM_TST_Error);

    /* Init CRYS */
    WMDRM_TST_Error = MW_ATP_UTIL_Init_CRYS();
    WMDRM_TST_Error = TST_ATP_CheckErrorReturn(TST_ATP_Error,
                                             "MW_ATP_UTIL_Init_CRYS",
                                             "!!!!!!!!!",
                                             "!!!!!!!!!");
	MW_ATP_RETURN_ON_FAILURE(WMDRM_TST_Error);
#endif   
    /* Start CRYS_ATP and its Menu */
    WMDRM_TST_Error = WMDRM_TST_menu(0,DX_NULL);

	return WMDRM_TST_Error;
}




