aboutsummaryrefslogtreecommitdiff
path: root/broccoli/midbropasad.c
diff options
context:
space:
mode:
Diffstat (limited to 'broccoli/midbropasad.c')
-rw-r--r--broccoli/midbropasad.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/broccoli/midbropasad.c b/broccoli/midbropasad.c
deleted file mode 100644
index 70a290f..0000000
--- a/broccoli/midbropasad.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include "includes/fifoqueue.h"
-#include "includes/broevent.h"
-
- void
-start_data_capture(Fifo_q * q)
-{
- int res;
- pthread_t event_listener;
- res = pthread_create(&event_listener, NULL, bro_event_listener, q);
- if(res){
- perror("Unable to create thread");
- exit(-1);
- }
-}
-
- int
-main(int argc, char **argv)
-{
- Fifo_q * q = init_queue(50);
- start_data_capture(q);
- while(true){
- printf("Main thread\n");
- sleep(10);
- print_queue(q);
- }
- free(q);
- return 0;
-}