Ver código fonte

cmScore.h/c : Added cmScoreNotifyCb().

master
Kevin Larke 9 anos atrás
pai
commit
60de3ffb15
2 arquivos alterados com 19 adições e 0 exclusões
  1. 18
    0
      app/cmScore.c
  2. 1
    0
      app/cmScore.h

+ 18
- 0
app/cmScore.c Ver arquivo

@@ -1871,6 +1871,24 @@ cmScRC_t      cmScoreSeqNotify( cmScH_t h )
1871 1871
   return rc;
1872 1872
 }
1873 1873
 
1874
+cmScRC_t      cmScoreSeqNotifyCb( cmScH_t h, cmScCb_t cbFunc, void* cbArg )
1875
+{
1876
+  cmSc_t*    p = _cmScHandleToPtr(h);
1877
+  cmScRC_t  rc = kOkScRC;
1878
+  cmScCb_t cbf = p->cbFunc;
1879
+  void*    cba = p->cbArg;
1880
+
1881
+  p->cbFunc = cbFunc;
1882
+  p->cbArg  = cbArg;
1883
+
1884
+  rc = cmScoreSeqNotify(h);
1885
+
1886
+  p->cbFunc = cbf;
1887
+  p->cbArg  = cba;
1888
+  
1889
+  return rc;
1890
+}
1891
+
1874 1892
 void          cmScoreClearPerfInfo( cmScH_t h )
1875 1893
 {
1876 1894
   cmSc_t*   p  = _cmScHandleToPtr(h);

+ 1
- 0
app/cmScore.h Ver arquivo

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

Carregando…
Cancelar
Salvar