From 7545105da1b8dae391eae07a71af2cf7780deb38 Mon Sep 17 00:00:00 2001 From: kpl Date: Mon, 16 Jun 2014 11:01:02 -0700 Subject: [PATCH] cmRtSys.h/c : Added cmRtSysNetReportSyncEnable() --- cmRtSys.c | 16 +++++++++++++++- cmRtSys.h | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/cmRtSys.c b/cmRtSys.c index 998b78e..c4c39d6 100644 --- a/cmRtSys.c +++ b/cmRtSys.c @@ -1329,12 +1329,26 @@ cmRtRC_t cmRtSysNetReport( cmRtSysH_t h ) { cmRptPrintf(p->err.rpt,"Sub-system:%i\n",i); if( cmRtNetIsValid(p->ssArray[i].netH)) - cmRtNetDoSync(p->ssArray[i].netH); + cmRtNetReport(p->ssArray[i].netH); } return rc; } +cmRtRC_t cmRtSysNetReportSyncEnable( cmRtSysH_t h, bool enableFl ) +{ + cmRtRC_t rc = kOkRtRC; + cmRt_t* p = _cmRtHandleToPtr(h); + unsigned i = 0; + for(; issCnt; ++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 rc = kOkRtRC; diff --git a/cmRtSys.h b/cmRtSys.h index 6c7820d..4774f81 100644 --- a/cmRtSys.h +++ b/cmRtSys.h @@ -327,6 +327,7 @@ extern "C" { bool cmRtSysNetIsInitialized( cmRtSysH_t h ); cmRtRC_t cmRtSysNetDoSync( 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 );