Lines Matching defs:item
42 * @param item new node to be added
45 void OH_ListAddTail(struct ListNode *head, struct ListNode *item)
47 if (head == NULL || item == NULL) {
50 item->next = head;
51 item->prev = head->prev;
52 head->prev->next = item;
53 head->prev = item;
59 * @param item the node to be removed from the list.
60 * This function does not free any memory within item.
63 void OH_ListRemove(struct ListNode *item)
65 if (item == NULL) {
68 item->next->prev = item->prev;
69 item->prev->next = item->next;
76 * @param item new node to be added
83 void OH_ListAddWithOrder(struct ListNode *head, struct ListNode *item, ListCompareProc compareProc)
87 if (head == NULL || item == NULL || compareProc == NULL) {
93 if (compareProc(match, item) > 0) {
103 item->next = match;
104 item->prev = match->prev;
105 match->prev->next = item;
106 match->prev = item;