diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-18 13:46:30 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-18 13:46:30 +0000 |
commit | 00ad2e9e1c6cf9e14c76660f2b748247c1f4bd83 (patch) | |
tree | 8389cf482409a7fefed1eac274d471188c89eab7 /include/alarm.h | |
parent | 58624f1dfc9a6fc6fec14b3ce77ac2fa0fc95401 (diff) | |
download | conntrack-tools-00ad2e9e1c6cf9e14c76660f2b748247c1f4bd83.tar.gz conntrack-tools-00ad2e9e1c6cf9e14c76660f2b748247c1f4bd83.zip |
yet another rework of the alarm scheduler
Diffstat (limited to 'include/alarm.h')
-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); |