/* Return (-1) on error Return (0) if was initiated or pending Return (1) if removal is complete  */
static int DivaSTraceLibraryStop(void *hLib)
/* Return (-1) on error Return (0) if was initiated or pending Return (1) if removal is complete  */
static int DivaSTraceLibraryStop(void *hLib)
{
    return (1);
  }
  switch (pLib->removal_state) {
    case 0:
      pLib->removal_state = 1;
      ScheduleNextTraceRequest(pLib);
      break;
    case 3:
      return (1);
  }
  return (0);
}