#ifndef QUEUE_H #define QUEUE_H #include #include /* For LINUX_VERSION_CODE */ #include "./message.h" typedef struct queue { int total_size; int len; message *m; struct list_head list; } queue; queue *init_queue(void); void enqueue(queue *q, message *m); message *dequeue(queue *q); void flush_queue(queue *q); #endif