1 #ifndef __TCP_RB_FRAG_QUEUE_
2 #define __TCP_RB_FRAG_QUEUE_
3 
4 #include "tcp_ring_buffer.h"
5 
6 /*---------------------------------------------------------------------------*/
7 typedef struct rb_frag_queue* rb_frag_queue_t;
8 /*---------------------------------------------------------------------------*/
9 rb_frag_queue_t
10 CreateRBFragQueue(int capacity);
11 /*---------------------------------------------------------------------------*/
12 void
13 DestroyRBFragQueue(rb_frag_queue_t rb_fragq);
14 /*---------------------------------------------------------------------------*/
15 int
16 RBFragEnqueue(rb_frag_queue_t rb_fragq, struct fragment_ctx *frag);
17 /*---------------------------------------------------------------------------*/
18 struct fragment_ctx *
19 RBFragDequeue(rb_frag_queue_t rb_fragq);
20 /*---------------------------------------------------------------------------*/
21 
22 #endif /* __TCP_RB_FRAG_QUEUE_ */
23