13 #ifndef FIRM_ADT_PQUEUE_H
14 #define FIRM_ADT_PQUEUE_H
void pqueue_put(pqueue_t *q, void *data, int priority)
Inserts a new element into a priority queue.
size_t pqueue_length(pqueue_t const *q)
Get the length of the priority queue.
void * pqueue_pop_front(pqueue_t *q)
Returns and removes the first element, i.e.
struct pqueue_t pqueue_t
priority queue
int pqueue_empty(pqueue_t const *q)
Returns true if queue is empty.
pqueue_t * new_pqueue(void)
Creates a new priority queue.
void del_pqueue(pqueue_t *q)
Frees all memory allocated by the priority queue.