aboutsummaryrefslogtreecommitdiff
path: root/broccoli/src
diff options
context:
space:
mode:
authorRobert Gustafsson <robg@student.chalmers.se>2017-10-10 14:54:31 +0200
committerRobert Gustafsson <robg@student.chalmers.se>2017-10-10 14:54:31 +0200
commit89ea70298caff759b719ab0855ad2cd48dfee0ca (patch)
tree7d7474202c2f8c48e90be3ae15d668e9e936d170 /broccoli/src
parent76cc060f5c937e352b9c411800df5b6dfd95e50f (diff)
downloadmidbro-89ea70298caff759b719ab0855ad2cd48dfee0ca.tar.gz
midbro-89ea70298caff759b719ab0855ad2cd48dfee0ca.tar.bz2
Add shared library
Diffstat (limited to 'broccoli/src')
-rw-r--r--broccoli/src/midbropasad.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/broccoli/src/midbropasad.c b/broccoli/src/midbropasad.c
index 04da7a0..cc93e7f 100644
--- a/broccoli/src/midbropasad.c
+++ b/broccoli/src/midbropasad.c
@@ -33,8 +33,10 @@ request_value()
}
void
-start_data_capture(Fifo_q * q)
+start_data_capture()
{
+
+ q = init_queue(50);
int res;
pthread_t event_listener;
res = pthread_create(&event_listener, NULL, bro_event_listener, q);
@@ -43,17 +45,3 @@ start_data_capture(Fifo_q * q)
exit(-1);
}
}
-
- int
-main(int argc, char **argv)
-{
- Fifo_q * q = init_queue(50);
- start_data_capture(q);
- sleep(10);
- while(true){
- print_queue(q);
- request_value();
- }
- free(q);
- return 0;
-}