dsys2
diff src/dsys2.h @ 6:80f86f0f67ec
I think I've done most of it...
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Fri, 02 Sep 2011 04:49:18 +0300 |
parents | 94ce16dd20c0 |
children | 5ba9dd6742a0 |
line diff
1.1 --- a/src/dsys2.h Fri Sep 02 01:57:00 2011 +0300 1.2 +++ b/src/dsys2.h Fri Sep 02 04:49:18 2011 +0300 1.3 @@ -45,8 +45,8 @@ 1.4 enum dsys_evtype dsys_event_type(struct dsys_event *ev); 1.5 float dsys_event_value(struct dsys_event *ev); 1.6 1.7 -void dsys_event_callback(struct dsys_event *ev, void (*func)(void*), void *cls); 1.8 -void dsys_event_link(struct dsys_event *ev, float *link); 1.9 +int dsys_event_callback(struct dsys_event *ev, void (*func)(struct dsys_event*, void*), void *cls); 1.10 +int dsys_event_link(struct dsys_event *ev, float *link); 1.11 1.12 /* event evaluators */ 1.13 float dsys_eval_step(struct dsys_event *ev, demotime_t t); 1.14 @@ -56,11 +56,9 @@ 1.15 /* time conversion */ 1.16 demotime_t dsys_sec_to_dtime(float sec); 1.17 demotime_t dsys_msec_to_dtime(unsigned long msec); 1.18 -demotime_t dsys_norm_to_dtime(float t); 1.19 1.20 float dsys_dtime_to_sec(demotime_t tm); 1.21 unsigned long dsys_dtime_to_msec(demotime_t tm); 1.22 -float dsys_dtime_to_norm(demotime_t tm); 1.23 1.24 1.25 #endif /* DSYS2_H_ */