cmRtSys.h/c : Added cmRtSysNetReportSyncEnable()

This commit is contained in:
kpl 2014-06-16 11:01:02 -07:00
parent b16d338592
commit 7545105da1
2 changed files with 16 additions and 1 deletions

View File

@ -1329,12 +1329,26 @@ cmRtRC_t cmRtSysNetReport( cmRtSysH_t h )
{ {
cmRptPrintf(p->err.rpt,"Sub-system:%i\n",i); cmRptPrintf(p->err.rpt,"Sub-system:%i\n",i);
if( cmRtNetIsValid(p->ssArray[i].netH)) if( cmRtNetIsValid(p->ssArray[i].netH))
cmRtNetDoSync(p->ssArray[i].netH); cmRtNetReport(p->ssArray[i].netH);
} }
return rc; return rc;
} }
cmRtRC_t cmRtSysNetReportSyncEnable( cmRtSysH_t h, bool enableFl )
{
cmRtRC_t rc = kOkRtRC;
cmRt_t* p = _cmRtHandleToPtr(h);
unsigned i = 0;
for(; i<p->ssCnt; ++i)
{
cmRptPrintf(p->err.rpt,"Sub-system:%i\n",i);
if( cmRtNetIsValid(p->ssArray[i].netH))
cmRtNetReportSyncEnable(p->ssArray[i].netH,enableFl);
}
return rc;
}
cmRtRC_t cmRtSysNetGetHandle( cmRtSysH_t h, unsigned rtSubIdx, cmRtNetH_t* hp ) cmRtRC_t cmRtSysNetGetHandle( cmRtSysH_t h, unsigned rtSubIdx, cmRtNetH_t* hp )
{ {
cmRtRC_t rc = kOkRtRC; cmRtRC_t rc = kOkRtRC;

View File

@ -327,6 +327,7 @@ extern "C" {
bool cmRtSysNetIsInitialized( cmRtSysH_t h ); bool cmRtSysNetIsInitialized( cmRtSysH_t h );
cmRtRC_t cmRtSysNetDoSync( cmRtSysH_t h ); cmRtRC_t cmRtSysNetDoSync( cmRtSysH_t h );
cmRtRC_t cmRtSysNetReport( cmRtSysH_t h ); cmRtRC_t cmRtSysNetReport( cmRtSysH_t h );
cmRtRC_t cmRtSysNetReportSyncEnable( cmRtSysH_t h, bool enableFl );
cmRtRC_t cmRtSysNetGetHandle( cmRtSysH_t h, unsigned rtSubIdx, cmRtNetH_t* hp ); cmRtRC_t cmRtSysNetGetHandle( cmRtSysH_t h, unsigned rtSubIdx, cmRtNetH_t* hp );