12345678910111213141516171819202122232425262728293031323334 |
- struct timer {
- time_t deadline;
- void (*cb_fn)(void *);
- void *cb_dat;
- struct timer *next;
- };
- void timer_init(struct timer *timer, void (*cb_fn)(void *), void *cb_dat);
- void timer_set(struct timer *timer, time_t deadline);
- void timer_cancel(struct timer *timer);
- void timers_init(void);
|