Lines Matching defs:item
73 pitem *item = (pitem *) OPENSSL_malloc(sizeof(pitem));
74 if (item == NULL) return NULL;
76 memcpy(item->priority,prio64be,sizeof(item->priority));
78 item->data = data;
79 item->next = NULL;
81 return item;
85 pitem_free(pitem *item)
87 if (item == NULL) return;
89 OPENSSL_free(item);
111 pqueue_insert(pqueue_s *pq, pitem *item)
117 pq->items = item;
118 return item;
127 int cmp = memcmp(next->priority, item->priority,8);
128 if (cmp > 0) /* next > item */
130 item->next = next;
133 pq->items = item;
135 curr->next = item;
137 return item;
144 item->next = NULL;
145 curr->next = item;
147 return item;
159 pitem *item = pq->items;
164 return item;
205 pitem *item = pq->items;
207 while(item != NULL)
209 printf("item\t%02x%02x%02x%02x%02x%02x%02x%02x\n",
210 item->priority[0],item->priority[1],
211 item->priority[2],item->priority[3],
212 item->priority[4],item->priority[5],
213 item->priority[6],item->priority[7]);
214 item = item->next;
225 pqueue_next(pitem **item)
229 if ( item == NULL || *item == NULL)
233 /* *item != NULL */
234 ret = *item;
235 *item = (*item)->next;
243 pitem *item = pq->items;
246 while(item != NULL)
249 item = item->next;