Lines Matching refs:q
14 Prioq *prioq_free(Prioq *q);
16 int prioq_ensure_allocated(Prioq **q, compare_func_t compare_func);
18 int prioq_put(Prioq *q, void *data, unsigned *idx);
19 int prioq_ensure_put(Prioq **q, compare_func_t compare_func, void *data, unsigned *idx);
20 int prioq_remove(Prioq *q, void *data, unsigned *idx);
21 int prioq_reshuffle(Prioq *q, void *data, unsigned *idx);
23 void *prioq_peek_by_index(Prioq *q, unsigned idx) _pure_;
24 static inline void *prioq_peek(Prioq *q) { in prioq_peek() argument
25 return prioq_peek_by_index(q, 0); in prioq_peek()
27 void *prioq_pop(Prioq *q);
29 #define PRIOQ_FOREACH_ITEM(q, p) \ argument
30 for (unsigned _i = 0; (p = prioq_peek_by_index(q, _i)); _i++)
32 unsigned prioq_size(Prioq *q) _pure_;
33 bool prioq_isempty(Prioq *q) _pure_;