Lines Matching refs:queue
40 } queue; typedef
48 int Q_Init(queue *q);
49 void Q_Destroy(queue *q);
50 int Q_IsEmpty(queue *q);
51 int Q_Size(queue *q);
52 int Q_AtHead(queue *q);
53 int Q_AtTail(queue *q);
54 int Q_PushHead(queue *q, void *d);
55 int Q_PushTail(queue *q, void *d);
56 void *Q_Head(queue *q);
57 void *Q_Tail(queue *q);
58 void *Q_PopHead(queue *q);
59 void *Q_PopTail(queue *q);
60 void *Q_Next(queue *q);
61 void *Q_Previous(queue *q);
62 void *Q_DelCur(queue *q);
63 void *Q_Get(queue *q);
64 int Q_Put(queue *q, void *data);
65 int Q_Sort(queue *q, int (*Comp)(const void *, const void *));
66 int Q_Find(queue *q, void *data,
68 void *Q_Seek(queue *q, void *data,
70 int Q_Insert(queue *q, void *data,
74 q_iter Q_Iter_Head(queue *q);
75 q_iter Q_Iter_Tail(queue *q);
80 void* Q_Iter_Del(queue *q, q_iter iter); /* not read only! here for completeness. */
83 #define Q_Iter_Head_F(q) (q ? (q_iter)((queue*)q)->head : NULL)
84 #define Q_Iter_Tail_F(q) (q ? (q_iter)((queue*)q)->tail : NULL)