dsys2

view src/dsys_impl.h @ 13:6bab2c0b0e4b

- added a shared library rule - changed all the names from dsys2 to dsys
author John Tsiombikas <nuclear@mutantstargoat.com>
date Mon, 05 Sep 2011 04:08:40 +0300
parents 80f86f0f67ec
children 26e3e0359f5b
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_ */