cmScore.h/c : Added cmScoreNotifyCb().
This commit is contained in:
parent
7daa1ebcee
commit
60de3ffb15
@ -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);
|
||||||
|
@ -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 );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user