summaryrefslogtreecommitdiff
path: root/broccoli/includes/fifoqueue.h
blob: 75b09c4c69c09560b5cd2e3380e133971381e4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef FIFOQUEUE_H
#define FIFOQUEUE_H
#include "types.h"

Fifo_q * init_queue(int size);

Sensor_t * create_sensor_object(int value, int uid);

boolean is_full(Fifo_q * q);

boolean is_empty(Fifo_q * q);

int add_to_queue(Fifo_q * q, Sensor_t * sensor);

Sensor_t * pop_from_queue(Fifo_q * q);

void print_queue(Fifo_q * q);
#endif