dsys2

annotate src/dsys_impl.h @ 11:65da828bc218

forgot the dependecy to lib_a for the install target
author John Tsiombikas <nuclear@siggraph.org>
date Sun, 04 Sep 2011 18:21:26 +0300
parents 95f010f7eadc
children 6bab2c0b0e4b
rev   line source
nuclear@0 1 #ifndef DSYS_IMPL_H_
nuclear@0 2 #define DSYS_IMPL_H_
nuclear@0 3
nuclear@0 4 #include "dsys2.h"
nuclear@0 5
nuclear@0 6 struct dsys_demo {
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_ */