summaryrefslogtreecommitdiff
path: root/navit/event.c
diff options
context:
space:
mode:
authorPierre Grandin <grandinp@altern.org>2017-01-25 19:07:19 -0800
committerPierre Grandin <grandinp@altern.org>2017-01-25 19:07:19 -0800
commit8b1459597c079af64b7bb32c618499cc157bf2b7 (patch)
tree03c2c65f4694e747372a67630d22b7c2b5a99521 /navit/event.c
parent9bf65125330a89c8202f7f7328a464dcb80a9904 (diff)
downloadnavit-8b1459597c079af64b7bb32c618499cc157bf2b7.tar.gz
Improved documentation
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)
{