Add some basic tests for the library itself
[libautomation.git] / lib / main.c
blob7be2fba163c4e837cf3b080acc79852ef1bfe632
1 /*
2 This file contains:
3 * initialization code
4 * important globals
5 * some utility functions used throughout the library
6 */
8 #include "libautomation.h"
10 struct ATM_TASK atm_main_task;
11 struct ev_loop *loop;
12 int atm_time;
14 void __attribute__ ((constructor)) atm_init(void) {
15 loop = EV_DEFAULT;
16 atm_task_init(&atm_main_task, 60);
19 int atm_main(int argc, char **argv) {
21 atm_task_start(&atm_main_task);
23 ev_run(EV_A_ 0);
26 void atm_do_nothing(void) {