diff options
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 |