diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-03 09:14:55 +0200 |
---|---|---|
committer | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-03 09:14:55 +0200 |
commit | cd393a04244181e73599b24ac38e70778501c120 (patch) | |
tree | 214f728b6099d2d45dd69d80ea18183e49dacdc8 /broccoli/includes | |
parent | b8e28ed52cec6de9179a5bb6058def0efc6fcfa5 (diff) | |
download | midbro-cd393a04244181e73599b24ac38e70778501c120.tar.gz midbro-cd393a04244181e73599b24ac38e70778501c120.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 |