Logo Search packages:      
Sourcecode: csound version File versions  Download package

PUBLIC void csoundRemoveCallback ( CSOUND *  csound,
int(*)(void *, void *, unsigned int)  func 
)

Removes a callback previously set with csoundSetCallback().

Definition at line 2516 of file csound.c.

  {
      CsoundCallbackEntry_t *pp, *prv;

      pp = (CsoundCallbackEntry_t*) csound->csoundCallbacks_;
      prv = (CsoundCallbackEntry_t*) NULL;
      while (pp != (CsoundCallbackEntry_t*) NULL) {
        if (pp->func == func) {
          if (prv != (CsoundCallbackEntry_t*) NULL)
            prv->nxt = pp->nxt;
          else
            csound->csoundCallbacks_ = (void*) pp->nxt;
          free((void*) pp);
          return;
        }
        prv = pp;
        pp = pp->nxt;
      }
  }


Generated by  Doxygen 1.6.0   Back to index