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

#ifndef TIMER_H
#define TIMER_H
typedef void(*timer_func_t)(void *arg);
struct timer_t;
struct timer_t *register_timer(const char *name, unsigned interval, timer_func_t timer_func, void *arg, int wait);
void deregister_timer(struct timer_t *handle);
void process_timers(unsigned tick);
void timer_set_interval(struct timer_t *t, unsigned interval);
void timer_set_interval_by_name(const char *name, unsigned interval);
#endif /* TIMER_H */