int squeue_remove(squeue_t *q, squeue_event *evt) { int ret; if (!q || !evt) return -1; ret = pqueue_remove(q, evt); if (evt) free(evt); return ret; }
/* Remove and return the next element in the queue. */ void * pqueue_pop(pqueue_t *queue) { return pqueue_remove(queue, 0); }