dsys2

diff src/dsys.h @ 15:26e3e0359f5b

renamed dsys_demo to dsys
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 26 Jul 2016 23:16:26 +0300
parents 6bab2c0b0e4b
children
line diff
     1.1 --- a/src/dsys.h	Tue Oct 18 09:46:49 2011 +0300
     1.2 +++ b/src/dsys.h	Tue Jul 26 23:16:26 2016 +0300
     1.3 @@ -3,7 +3,7 @@
     1.4  
     1.5  #include <stdio.h>
     1.6  
     1.7 -struct dsys_demo;
     1.8 +struct dsys;
     1.9  struct dsys_event;
    1.10  
    1.11  typedef float demotime_t;
    1.12 @@ -17,33 +17,33 @@
    1.13  extern "C" {
    1.14  #endif
    1.15  
    1.16 -struct dsys_demo *dsys_open(const char *fname);
    1.17 -struct dsys_demo *dsys_open_stream(FILE *fp);
    1.18 -void dsys_close(struct dsys_demo *demo);
    1.19 +struct dsys *dsys_open(const char *fname);
    1.20 +struct dsys *dsys_open_stream(FILE *fp);
    1.21 +void dsys_close(struct dsys *demo);
    1.22  
    1.23 -void dsys_update(struct dsys_demo *demo, demotime_t tm);
    1.24 +void dsys_update(struct dsys *demo, demotime_t tm);
    1.25  
    1.26  
    1.27 -void dsys_start(struct dsys_demo *demo);
    1.28 -void dsys_stop(struct dsys_demo *demo);
    1.29 -int dsys_is_running(struct dsys_demo *demo);
    1.30 +void dsys_start(struct dsys *demo);
    1.31 +void dsys_stop(struct dsys *demo);
    1.32 +int dsys_is_running(struct dsys *demo);
    1.33  
    1.34  
    1.35 -demotime_t dsys_duration(struct dsys_demo *demo);
    1.36 -demotime_t dsys_time(struct dsys_demo *demo);
    1.37 -float dsys_progress(struct dsys_demo *demo);
    1.38 +demotime_t dsys_duration(struct dsys *demo);
    1.39 +demotime_t dsys_time(struct dsys *demo);
    1.40 +float dsys_progress(struct dsys *demo);
    1.41  
    1.42  /* seek without continuity */
    1.43 -void dsys_seek(struct dsys_demo *demo, demotime_t tm);
    1.44 -void dsys_seek_norm(struct dsys_demo *demo, float t);
    1.45 +void dsys_seek(struct dsys *demo, demotime_t tm);
    1.46 +void dsys_seek_norm(struct dsys *demo, float t);
    1.47  
    1.48  /* seek by accelerating time */
    1.49 -void dsys_warp(struct dsys_demo *demo, demotime_t tm);
    1.50 -void dsys_warp_norm(struct dsys_demo *demo, float t);
    1.51 +void dsys_warp(struct dsys *demo, demotime_t tm);
    1.52 +void dsys_warp_norm(struct dsys *demo, float t);
    1.53  
    1.54  
    1.55  /* events */
    1.56 -struct dsys_event *dsys_event(struct dsys_demo *demo, const char *name);
    1.57 +struct dsys_event *dsys_event(struct dsys *demo, const char *name);
    1.58  
    1.59  enum dsys_evtype dsys_event_type(struct dsys_event *ev);
    1.60  float dsys_event_value(struct dsys_event *ev);