diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/alarm.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/alarm.h b/include/alarm.h index 532084a..2f78885 100644 --- a/include/alarm.h +++ b/include/alarm.h @@ -5,6 +5,8 @@ #include <sys/time.h> +extern int alarm_counter; + struct alarm_list { struct list_head head; struct timeval tv; @@ -19,6 +21,10 @@ set_alarm_expiration(struct alarm_list *t, long tv_sec, long tv_usec) t->tv.tv_usec = tv_usec; } +int init_alarm_hash(void); + +void destroy_alarm_hash(void); + void init_alarm(struct alarm_list *t, void *data, void (*fcn)(struct alarm_list *a, void *data)); @@ -29,7 +35,7 @@ void del_alarm(struct alarm_list *alarm); void mod_alarm(struct alarm_list *alarm, unsigned long sc, unsigned long usc); -int get_next_alarm(struct timeval *tv, struct timeval *next_alarm); +int get_next_alarm_run(struct timeval *next_alarm); int do_alarm_run(struct timeval *next_alarm); |