From 6bd883d7ab6b263ebce2ec69a322886bc726e860 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Sat, 7 Jan 2006 22:00:51 +0000 Subject: introduce core timer handling --- include/ulogd/ulogd.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3