summaryrefslogtreecommitdiff
path: root/lib/event.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-02-21 11:39:45 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2015-02-21 11:39:45 +0100
commit7730553b7eeb33d21e5597f110334ca584ad532d (patch)
treec80bf6d48fc91bafd7f0aefc859a033d3b472c89 /lib/event.h
parent0da562a7cb25ed2b8724248ad6f841b1831a09c3 (diff)
parentec2194fa7a20a2768ca0027b5f3c024f0a251866 (diff)
Merge remote-tracking branch 'origin/soft-int'
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