diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-03 09:14:55 +0200 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-09 12:14:35 +0200 |
commit | f4a7033d3629976f9980cb956e2c29315c6306c0 (patch) | |
tree | 9ef8d5193944f5b0f5e4f0f404cfcbd99cbeef43 /broccoli/includes | |
parent | 1df374c02ae16e364cfa9bfab2aa4e7f8e52005e (diff) | |
download | midbro-f4a7033d3629976f9980cb956e2c29315c6306c0.tar.gz midbro-f4a7033d3629976f9980cb956e2c29315c6306c0.tar.bz2 |
Some refactoring
Diffstat (limited to 'broccoli/includes')
-rw-r--r-- | broccoli/includes/broevent.h | 7 | ||||
-rw-r--r-- | broccoli/includes/fifoqueue.h | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/broccoli/includes/broevent.h b/broccoli/includes/broevent.h index 653796e..5e34f5c 100644 --- a/broccoli/includes/broevent.h +++ b/broccoli/includes/broevent.h @@ -1,5 +1,4 @@ -#ifdef BROCCOLI -#include <broccoli.h> -#endif - +#ifndef BROEVENT_H +#define BROEVENT_H void * bro_event_listener(void * args); +#endif diff --git a/broccoli/includes/fifoqueue.h b/broccoli/includes/fifoqueue.h index 398e1e9..75b09c4 100644 --- a/broccoli/includes/fifoqueue.h +++ b/broccoli/includes/fifoqueue.h @@ -1,5 +1,5 @@ -#include <stdlib.h> -#include <stdio.h> +#ifndef FIFOQUEUE_H +#define FIFOQUEUE_H #include "types.h" Fifo_q * init_queue(int size); @@ -15,3 +15,4 @@ 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 |