cttimer.h 686 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Timer handling
  3. */
  4. #ifndef __CTTIMER_H
  5. #define __CTTIMER_H
  6. #include <linux/spinlock.h>
  7. #include <linux/timer.h>
  8. #include <linux/list.h>
  9. struct snd_pcm_substream;
  10. struct ct_atc;
  11. struct ct_atc_pcm;
  12. struct ct_timer;
  13. struct ct_timer_instance;
  14. struct ct_timer *ct_timer_new(struct ct_atc *atc);
  15. void ct_timer_free(struct ct_timer *atimer);
  16. struct ct_timer_instance *
  17. ct_timer_instance_new(struct ct_timer *atimer, struct ct_atc_pcm *apcm);
  18. void ct_timer_instance_free(struct ct_timer_instance *ti);
  19. void ct_timer_start(struct ct_timer_instance *ti);
  20. void ct_timer_stop(struct ct_timer_instance *ti);
  21. void ct_timer_prepare(struct ct_timer_instance *ti);
  22. #endif /* __CTTIMER_H */