dsys2
annotate src/dsys_impl.h @ 15:26e3e0359f5b
renamed dsys_demo to dsys
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 26 Jul 2016 23:16:26 +0300 |
parents | 6bab2c0b0e4b |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef DSYS_IMPL_H_ |
nuclear@0 | 2 #define DSYS_IMPL_H_ |
nuclear@0 | 3 |
nuclear@13 | 4 #include "dsys.h" |
nuclear@0 | 5 |
nuclear@15 | 6 struct dsys { |
nuclear@2 | 7 demotime_t tm, src_tm, start_tm, stop_tm, duration; |
nuclear@2 | 8 demotime_t stoppage_tm; |
nuclear@0 | 9 |
nuclear@4 | 10 struct dsys_event *evlist; |
nuclear@0 | 11 int num_ev; |
nuclear@2 | 12 |
nuclear@6 | 13 struct dsys_event *nextev, *active; |
nuclear@6 | 14 |
nuclear@2 | 15 int running; |
nuclear@0 | 16 }; |
nuclear@0 | 17 |
nuclear@0 | 18 struct callback { |
nuclear@0 | 19 void (*func)(struct dsys_event*, void*); |
nuclear@0 | 20 void *cls; |
nuclear@0 | 21 |
nuclear@0 | 22 struct callback *next; |
nuclear@0 | 23 }; |
nuclear@0 | 24 |
nuclear@0 | 25 |
nuclear@0 | 26 struct dsys_event { |
nuclear@0 | 27 enum dsys_evtype type; |
nuclear@0 | 28 |
nuclear@4 | 29 char *name; |
nuclear@0 | 30 demotime_t t0, t1; |
nuclear@0 | 31 float val; |
nuclear@0 | 32 |
nuclear@6 | 33 float (*eval)(struct dsys_event*, demotime_t); |
nuclear@0 | 34 |
nuclear@0 | 35 struct callback *cblist; |
nuclear@2 | 36 |
nuclear@2 | 37 struct dsys_event *next, *prev; |
nuclear@0 | 38 }; |
nuclear@0 | 39 |
nuclear@0 | 40 #endif /* DSYS_IMPL_H_ */ |