Lines Matching defs:item
55 * insert timeout item on current given list in sorted order
57 static void *time_add(struct tevent *item, void *list)
60 if(!tp || item->milli < tp->milli)
62 item->next = tp;
63 list = (void*)item;
67 while(tp->next && item->milli > tp->next->milli)
69 item->next = tp->next;
70 tp->next = item;
72 tp = item;
78 * delete timeout item from current given list, delete timer
80 static void *time_delete(register struct tevent *item, void *list)
83 if(item==tp)
87 while(tp && tp->next != item)
90 tp->next = item->next;
92 if(item->timeout)
93 timerdel((void*)item->timeout);