diff options
Diffstat (limited to 'broccoli/src/midbropasad.c')
-rw-r--r-- | broccoli/src/midbropasad.c | 18 |
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; -} |