diff options
Diffstat (limited to 'prio-queue.h')
-rw-r--r-- | prio-queue.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/prio-queue.h b/prio-queue.h index d030ec9dd6..4f9a37e6be 100644 --- a/prio-queue.h +++ b/prio-queue.h @@ -37,18 +37,24 @@ struct prio_queue { /* * Add the "thing" to the queue. */ -extern void prio_queue_put(struct prio_queue *, void *thing); +void prio_queue_put(struct prio_queue *, void *thing); /* * Extract the "thing" that compares the smallest out of the queue, * or NULL. If compare function is NULL, the queue acts as a LIFO * stack. */ -extern void *prio_queue_get(struct prio_queue *); +void *prio_queue_get(struct prio_queue *); -extern void clear_prio_queue(struct prio_queue *); +/* + * Gain access to the "thing" that would be returned by + * prio_queue_get, but do not remove it from the queue. + */ +void *prio_queue_peek(struct prio_queue *); + +void clear_prio_queue(struct prio_queue *); /* Reverse the LIFO elements */ -extern void prio_queue_reverse(struct prio_queue *); +void prio_queue_reverse(struct prio_queue *); #endif /* PRIO_QUEUE_H */ |