diff --git a/app/cmScore.c b/app/cmScore.c index 7df1711..ad48090 100644 --- a/app/cmScore.c +++ b/app/cmScore.c @@ -1871,6 +1871,24 @@ cmScRC_t cmScoreSeqNotify( cmScH_t h ) return rc; } +cmScRC_t cmScoreSeqNotifyCb( cmScH_t h, cmScCb_t cbFunc, void* cbArg ) +{ + cmSc_t* p = _cmScHandleToPtr(h); + cmScRC_t rc = kOkScRC; + cmScCb_t cbf = p->cbFunc; + void* cba = p->cbArg; + + p->cbFunc = cbFunc; + p->cbArg = cbArg; + + rc = cmScoreSeqNotify(h); + + p->cbFunc = cbf; + p->cbArg = cba; + + return rc; +} + void cmScoreClearPerfInfo( cmScH_t h ) { cmSc_t* p = _cmScHandleToPtr(h); diff --git a/app/cmScore.h b/app/cmScore.h index 5df7b22..5758f0d 100644 --- a/app/cmScore.h +++ b/app/cmScore.h @@ -207,6 +207,7 @@ extern "C" { // Use cmScoreDecode() to convert the byte string to a // cmScMsg_t record. cmScRC_t cmScoreSeqNotify( cmScH_t h ); + cmScRC_t cmScoreSeqNotifyCb( cmScH_t h, cmScCb_t cbFunc, void* cbArg ); void cmScoreClearPerfInfo( cmScH_t h );