summaryrefslogtreecommitdiff
path: root/lib/event.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-11-03 10:42:55 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2014-11-03 10:42:55 +0100
commit6f8bbaa10bbd21729d0b62a5878febcbee2c0811 (patch)
tree5b20f464388a529084e53b24406b99df2210264d /lib/event.h
parent88a183c6c9a2b86b52f67e87bbc8b7edd32670c6 (diff)
Fininshing integrated OSPF.
Diffstat (limited to 'lib/event.h')
-rw-r--r--lib/event.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/event.h b/lib/event.h
index d8500413..d5975222 100644
--- a/lib/event.h
+++ b/lib/event.h
@@ -30,4 +30,11 @@ void ev_schedule(event *);
void ev_postpone(event *);
int ev_run_list(event_list *);
+static inline int
+ev_active(event *e)
+{
+ return e->n.next != NULL;
+}
+
+
#endif