Home | History | Annotate | Download | only in pqueue

Lines Matching refs:pq

95 	pqueue_s *pq = (pqueue_s *) OPENSSL_malloc(sizeof(pqueue_s));
96 if (pq == NULL) return NULL;
98 memset(pq, 0x00, sizeof(pqueue_s));
99 return pq;
103 pqueue_free(pqueue_s *pq)
105 if (pq == NULL) return;
107 OPENSSL_free(pq);
111 pqueue_insert(pqueue_s *pq, pitem *item)
115 if (pq->items == NULL)
117 pq->items = item;
121 for(curr = NULL, next = pq->items;
133 pq->items = item;
151 pqueue_peek(pqueue_s *pq)
153 return pq->items;
157 pqueue_pop(pqueue_s *pq)
159 pitem *item = pq->items;
161 if (pq->items != NULL)
162 pq->items = pq->items->next;
168 pqueue_find(pqueue_s *pq, unsigned char *prio64be)
173 if ( pq->items == NULL)
176 for ( next = pq->items; next->next != NULL; next = next->next)
194 pq->items = next->next;
203 pqueue_print(pqueue_s *pq)
205 pitem *item = pq->items;
219 pqueue_iterator(pqueue_s *pq)
221 return pqueue_peek(pq);
241 pqueue_size(pqueue_s *pq)
243 pitem *item = pq->items;