2 * Author: Gurvinder Singh <gurvindersinghdahiya@gmail.com>
4 * Created on January 16, 2010, 1:18 PM
7 #ifndef _UTIL_CXT_QUEUE_H
8 #define _UTIL_CXT_QUEUE_H
12 /* Define a queue for storing connection trackers */
13 typedef struct _cxtqueue
20 /* spare/unused/prealloced connection trackers live here */
23 /* dead connections waiting to be written to disk if */
24 /* connection tracking output is enabled */
27 /* All "established" connections live here, the top holds the
28 * last recently used (lru) connection */
31 cxtqueue
*cxtqueue_new();
32 void cxt_enqueue (cxtqueue
*, connection
*);
33 connection
*cxt_dequeue (cxtqueue
*);
34 void cxt_requeue(connection
*, cxtqueue
*, cxtqueue
*);
36 #endif /* _UTIL_CXT_QUEUE_H */