11 #ifndef PACKET_QUEUE_H
12 #define PACKET_QUEUE_H
92 static inline void free_packet(
void *elt) {
File containing the definition of the packet decoder utilities.
int is_packet_queue_empty(struct packet_queue *queue)
Checks if packet queue is empty.
Definition: packet_queue.c:89
ssize_t get_packet_queue_length(struct packet_queue *queue)
Returns the packet queue length.
Definition: packet_queue.c:85
void free_packet_queue_el(struct packet_queue *el)
Delete a packet entry.
Definition: packet_queue.c:69
struct packet_queue * push_packet_queue(struct packet_queue *queue, struct tuple_packet tp)
Pushes a packet in the packet queue.
Definition: packet_queue.c:35
void free_packet_tuple(struct tuple_packet *tp)
Frees an allocated packet tuple.
Definition: packet_queue.c:62
void free_packet_queue(struct packet_queue *queue)
Frees the packet queue.
Definition: packet_queue.c:76
struct packet_queue * init_packet_queue(void)
Initialises and empty packet queue.
Definition: packet_queue.c:21
struct packet_queue * pop_packet_queue(struct packet_queue *queue)
Extract the first packet from the packet queueu.
Definition: packet_queue.c:55
Packet queueu structure definition.
Definition: packet_queue.h:25
struct tuple_packet tp
Definition: packet_queue.h:26
struct dl_list list
Definition: packet_queue.h:27
Definition: packet_decoder.h:40