diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ulogd/ulogd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h index a8628db..7fad2b4 100644 --- a/include/ulogd/ulogd.h +++ b/include/ulogd/ulogd.h @@ -238,4 +238,18 @@ struct ulogd_fd { int ulogd_register_fd(struct ulogd_fd *ufd); void ulogd_unregister_fd(struct ulogd_fd *ufd); +/*********************************************************************** + * timer handling + ***********************************************************************/ + +struct ulogd_timer { + struct llist_head list; + struct timeval expires; + void (*cb)(void *data); + void *data; +}; + +int ulogd_register_timer(struct ulogd_timer *timer); +void ulogd_unregister_timer(struct ulogd_timer *timer); + #endif /* _ULOGD_H */ |