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.

26 lines
540 B

#ifndef __TIMER_LIST_H____
#define __TIMER_LIST_H____
#ifdef __cplusplus
extern "C" {
#endif
struct timer_list;
struct timer_list *timer_list_create(void (*f)(struct timer_list *, void *user), void *user);
void timer_list_activate(struct timer_list *it, unsigned int ms);
void timer_list_deactive(struct timer_list *it);
void timer_list_destroy(struct timer_list *it);
struct timer_list *timer_list_match(int (*match)(void *user, void *arg), void *arg, void **r);
void timer_list_dispatch(void);
#ifdef __cplusplus
}
#endif
#endif