| 95 | } |
| 96 | |
| 97 | void *prio_queue_peek(struct prio_queue *queue) |
| 98 | { |
| 99 | if (!queue->nr) |
| 100 | return NULL; |
| 101 | if (!queue->compare) |
| 102 | return queue->array[queue->nr - 1].data; |
| 103 | return queue->array[0].data; |
| 104 | } |
| 105 | |
| 106 | void prio_queue_replace(struct prio_queue *queue, void *thing) |
| 107 | { |
no outgoing calls