Lines Matching defs:pq
40 pqueue *pq = OPENSSL_zalloc(sizeof(*pq));
42 if (pq == NULL)
45 return pq;
48 void pqueue_free(pqueue *pq)
50 OPENSSL_free(pq);
53 pitem *pqueue_insert(pqueue *pq, pitem *item)
57 if (pq->items == NULL) {
58 pq->items = item;
62 for (curr = NULL, next = pq->items;
72 pq->items = item;
89 pitem *pqueue_peek(pqueue *pq)
91 return pq->items;
94 pitem *pqueue_pop(pqueue *pq)
96 pitem *item = pq->items;
98 if (pq->items != NULL)
99 pq->items = pq->items->next;
104 pitem *pqueue_find(pqueue *pq, unsigned char *prio64be)
109 if (pq->items == NULL)
112 for (next = pq->items; next->next != NULL; next = next->next) {
129 pitem *pqueue_iterator(pqueue *pq)
131 return pqueue_peek(pq);
148 size_t pqueue_size(pqueue *pq)
150 pitem *item = pq->items;