summaryrefslogtreecommitdiff
path: root/broccoli/includes
diff options
context:
space:
mode:
authorRobert Gustafsson <robg@student.chalmers.se>2017-09-28 16:39:28 +0200
committerRobert Gustafsson <robg@student.chalmers.se>2017-09-28 16:39:28 +0200
commit1e846faaec3f5dd19128068fc52c2df5d7ba712a (patch)
tree3ed7b4836667e61726b8bb8dde449a032e7711f9 /broccoli/includes
parent7bd84e78376e5f5b87349d00766b024964bb84b3 (diff)
downloadmidbro-1e846faaec3f5dd19128068fc52c2df5d7ba712a.tar.gz
midbro-1e846faaec3f5dd19128068fc52c2df5d7ba712a.tar.bz2
Add new thread for event handling
Diffstat (limited to 'broccoli/includes')
-rw-r--r--broccoli/includes/broevent.h2
-rw-r--r--broccoli/includes/fifoqueue.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/broccoli/includes/broevent.h b/broccoli/includes/broevent.h
index 4021737..653796e 100644
--- a/broccoli/includes/broevent.h
+++ b/broccoli/includes/broevent.h
@@ -2,4 +2,4 @@
#include <broccoli.h>
#endif
-void bro_event_listener();
+void * bro_event_listener(void * args);
diff --git a/broccoli/includes/fifoqueue.h b/broccoli/includes/fifoqueue.h
index 9ee5c53..398e1e9 100644
--- a/broccoli/includes/fifoqueue.h
+++ b/broccoli/includes/fifoqueue.h
@@ -4,6 +4,8 @@
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);