You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
445 B

8 years ago
  1. #ifndef TIMER_H
  2. #define TIMER_H
  3. typedef void(*timer_func_t)(void *arg);
  4. struct timer_t;
  5. struct timer_t *register_timer(const char *name, unsigned interval, timer_func_t timer_func, void *arg, int wait);
  6. void deregister_timer(struct timer_t *handle);
  7. void process_timers(unsigned tick);
  8. void timer_set_interval(struct timer_t *t, unsigned interval);
  9. void timer_set_interval_by_name(const char *name, unsigned interval);
  10. #endif /* TIMER_H */