diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/lib/pqueue.h | 8 | ||||
-rw-r--r-- | inc/schedule.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/inc/lib/pqueue.h b/inc/lib/pqueue.h index c576ee3..86c4080 100644 --- a/inc/lib/pqueue.h +++ b/inc/lib/pqueue.h @@ -104,4 +104,12 @@ int pqueue_insert(struct pqueue *q, void *d); */ void *pqueue_pop(struct pqueue *q); +/** + * pop an item from the queue at a position + * @param q the queue + * @param p the position + * @return NULL on error, otherwise the entry + */ +void *pqueue_pop_at(struct pqueue *q, size_t p); + #endif diff --git a/inc/schedule.h b/inc/schedule.h index ad0e054..7c76a66 100644 --- a/inc/schedule.h +++ b/inc/schedule.h @@ -5,6 +5,7 @@ #define CALM_SCHEDULE_H void schedule_init(void); +void schedule(void); void schedule_destroy(void); #endif |