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-14 15:22:24 +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-14 15:22:24 +0000 |
commit | 6e5b6c91625fd431ac3d1339f55a4aa278ff2604 (patch) | |
tree | 79e087eebf878ff86bc4dd74292c97748f593b15 /include | |
parent | 94aa8b70f2e8cf7cf664d7c0e86a9ebc287010ef (diff) | |
download | conntrack-tools-6e5b6c91625fd431ac3d1339f55a4aa278ff2604.tar.gz conntrack-tools-6e5b6c91625fd431ac3d1339f55a4aa278ff2604.zip |
improve alarm framework based on suggestions from Max Duempel
Diffstat (limited to 'include')
-rw-r--r-- | include/alarm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/alarm.h b/include/alarm.h index 82a1612..fbe34f6 100644 --- a/include/alarm.h +++ b/include/alarm.h @@ -10,4 +10,11 @@ struct alarm_list { void (*function)(struct alarm_list *a, void *data); }; +static inline void +set_alarm_expiration(struct alarm_list *t, long tv_sec, long tv_usec) +{ + t->tv.tv_sec = tv_sec; + t->tv.tv_usec = tv_usec; +} + #endif |