20 #include "../shared/shared.h" 30 typedef struct priorityQueueElement_s {
39 typedef struct priorityQueue_s {
48 #define PQueueIsEmpty(pq) ((pq)->currentSize == 0) int priorityQueueRating_t
the priority queue struct the actual data is stored in priorityQueueElement_t
void PQueueInitialise(priorityQueue_t *pq, uint32_t maxElements)
initialise the priority queue with a maximum size of maxelements.
priorityQueueElement_t * elements
void PQueuePush(priorityQueue_t *pq, const pos4_t item, priorityQueueRating_t rating)
void PQueuePop(priorityQueue_t *pq, pos4_t item)
remove the first node from the pqueue and provide a pointer to it
void PQueueFree(priorityQueue_t *pq)
free up memory for pqueue
priorityQueueRating_t rating