dbf-halloween2015
annotate src/dsys/dsys_impl.h @ 3:c37fe5d8a4ed
windows port
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 01 Nov 2015 06:04:28 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef DSYS_IMPL_H_ |
nuclear@0 | 2 #define DSYS_IMPL_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include "dsys.h" |
nuclear@0 | 5 |
nuclear@0 | 6 struct dsys_demo { |
nuclear@0 | 7 demotime_t tm, src_tm, start_tm, stop_tm, duration; |
nuclear@0 | 8 demotime_t stoppage_tm; |
nuclear@0 | 9 |
nuclear@0 | 10 struct dsys_event *evlist; |
nuclear@0 | 11 int num_ev; |
nuclear@0 | 12 |
nuclear@0 | 13 struct dsys_event *nextev, *active; |
nuclear@0 | 14 |
nuclear@0 | 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@0 | 29 char *name; |
nuclear@0 | 30 demotime_t t0, t1; |
nuclear@0 | 31 float val; |
nuclear@0 | 32 |
nuclear@0 | 33 float (*eval)(struct dsys_event*, demotime_t); |
nuclear@0 | 34 |
nuclear@0 | 35 struct callback *cblist; |
nuclear@0 | 36 |
nuclear@0 | 37 struct dsys_event *next, *prev; |
nuclear@0 | 38 }; |
nuclear@0 | 39 |
nuclear@0 | 40 #endif /* DSYS_IMPL_H_ */ |