cmScore.h/c : Added cmScoreNotifyCb().

This commit is contained in:
Kevin Larke 2015-03-30 13:05:31 -07:00
parent 7daa1ebcee
commit 60de3ffb15
2 changed files with 19 additions and 0 deletions

View File

@ -1871,6 +1871,24 @@ cmScRC_t cmScoreSeqNotify( cmScH_t h )
return rc; 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 ) void cmScoreClearPerfInfo( cmScH_t h )
{ {
cmSc_t* p = _cmScHandleToPtr(h); cmSc_t* p = _cmScHandleToPtr(h);

View File

@ -207,6 +207,7 @@ extern "C" {
// Use cmScoreDecode() to convert the byte string to a // Use cmScoreDecode() to convert the byte string to a
// cmScMsg_t record. // cmScMsg_t record.
cmScRC_t cmScoreSeqNotify( cmScH_t h ); cmScRC_t cmScoreSeqNotify( cmScH_t h );
cmScRC_t cmScoreSeqNotifyCb( cmScH_t h, cmScCb_t cbFunc, void* cbArg );
void cmScoreClearPerfInfo( cmScH_t h ); void cmScoreClearPerfInfo( cmScH_t h );