summaryrefslogtreecommitdiff
path: root/broccoli/includes
diff options
context:
space:
mode:
authorRobert Gustafsson <robg@student.chalmers.se>2017-09-28 16:39:28 +0200
committerAndreas Lindhé <andreas@lindhe.io>2017-10-09 12:14:35 +0200
commit11187a331cc132b990785dfe0012054bf686a5d4 (patch)
tree581383d8f757d06645354a32fbd639f99d7519bb /broccoli/includes
parentef50d0a5d1e592bc512f6d6b892dfded6d6d7aaa (diff)
downloadmidbro-11187a331cc132b990785dfe0012054bf686a5d4.tar.gz
midbro-11187a331cc132b990785dfe0012054bf686a5d4.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);