From 60de3ffb15df2dd68cbf3ad00b3dabad35122f94 Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Mon, 30 Mar 2015 13:05:31 -0700 Subject: [PATCH] cmScore.h/c : Added cmScoreNotifyCb(). --- app/cmScore.c | 18 ++++++++++++++++++ app/cmScore.h | 1 + 2 files changed, 19 insertions(+) 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 );