[netfilter-cvslog] r7381 - branches/ulog/ulogd2/include/ulogd

pablo at netfilter.org pablo at netfilter.org
Fri Feb 22 01:29:24 CET 2008


Author: pablo at netfilter.org
Date: 2008-02-22 01:29:23 +0100 (Fri, 22 Feb 2008)
New Revision: 7381

Added:
   branches/ulog/ulogd2/include/ulogd/timer.h
Log:
add missing timer.h


Added: branches/ulog/ulogd2/include/ulogd/timer.h
===================================================================
--- branches/ulog/ulogd2/include/ulogd/timer.h	                        (rev 0)
+++ branches/ulog/ulogd2/include/ulogd/timer.h	2008-02-22 00:29:23 UTC (rev 7381)
@@ -0,0 +1,26 @@
+#ifndef _TIMER_H_
+#define _TIMER_H_
+
+#include <ulogd/linux_rbtree.h>
+#include <ulogd/linuxlist.h>
+
+#include <sys/time.h>
+
+struct ulogd_timer {
+	struct rb_node		node;
+	struct llist_head	list;
+	struct timeval		tv;
+	void			*data;
+	void			(*cb)(struct ulogd_timer *a, void *data);
+};
+
+void ulogd_init_timer(struct ulogd_timer *t,
+		     void *data,
+		     void (*cb)(struct ulogd_timer *a, void *data));
+void ulogd_add_timer(struct ulogd_timer *alarm, unsigned long sc);
+void ulogd_del_timer(struct ulogd_timer *alarm);
+int ulogd_timer_pending(struct ulogd_timer *alarm);
+struct timeval *ulogd_get_next_timer_run(struct timeval *next_timer);
+struct timeval *ulogd_do_timer_run(struct timeval *next_timer);
+
+#endif




More information about the netfilter-cvslog mailing list