summaryrefslogtreecommitdiff
path: root/navit/event.c
diff options
context:
space:
mode:
authorpohlinkzei <pohlinkzei@gmx-topmail.de>2017-02-28 15:36:42 +0100
committerpohlinkzei <pohlinkzei@gmx-topmail.de>2017-02-28 15:36:42 +0100
commitd6361fac800b3bae8d8b37920fddb2bbedfc8c1a (patch)
treefcb7f52123710f6df61d805c68d6bbf47e050733 /navit/event.c
parent98702c661f58978f56b1e6d10defb322f7ad4252 (diff)
parente1b8340c662516353028e05abe0570fc4ae7bb9a (diff)
downloadnavit-pr-5-hide-keys.tar.gz
Merge remote-tracking branch 'navit/trunk' into pr-5-hide-keyspr-5-hide-keys
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)
{