summaryrefslogtreecommitdiff
path: root/navit/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/event.c')
-rw-r--r--navit/event.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/navit/event.c b/navit/event.c
index 667e5bdc3..5aee40689 100644
--- a/navit/event.c
+++ b/navit/event.c
@@ -77,6 +77,15 @@ event_remove_watch(struct event_watch *ev)
event_methods.remove_watch(ev);
}
+/**
+ * Add an event timeout
+ *
+ * @param the timeout itself in msec
+ * @param multi 0 means that the timeout will fire only once, 1 means that it will repeat
+ * @param the callback to call when the timeout expires
+ *
+ * @returns the result of the event_methods.add_timeout() call
+ */
struct event_timeout *
event_add_timeout(int timeout, int multi, struct callback *cb)
{