dbf-halloween2015

view 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
line source
1 #ifndef DSYS_IMPL_H_
2 #define DSYS_IMPL_H_
4 #include "dsys.h"
6 struct dsys_demo {
7 demotime_t tm, src_tm, start_tm, stop_tm, duration;
8 demotime_t stoppage_tm;
10 struct dsys_event *evlist;
11 int num_ev;
13 struct dsys_event *nextev, *active;
15 int running;
16 };
18 struct callback {
19 void (*func)(struct dsys_event*, void*);
20 void *cls;
22 struct callback *next;
23 };
26 struct dsys_event {
27 enum dsys_evtype type;
29 char *name;
30 demotime_t t0, t1;
31 float val;
33 float (*eval)(struct dsys_event*, demotime_t);
35 struct callback *cblist;
37 struct dsys_event *next, *prev;
38 };
40 #endif /* DSYS_IMPL_H_ */