aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/timeout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common/timeout.h')
-rw-r--r--src/lib/common/timeout.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/common/timeout.h b/src/lib/common/timeout.h
new file mode 100644
index 0000000..5230057
--- /dev/null
+++ b/src/lib/common/timeout.h
@@ -0,0 +1,31 @@
1#ifndef TIMEOUT_H
2#define TIMEOUT_H
3
4#include <dbus/dbus.h>
5
6#include <gnunet/platform.h>
7#include <gnunet/gnunet_common.h>
8#include <gnunet/gnunet_scheduler_lib.h>
9
10struct Timeout;
11
12struct TimeoutIter
13{
14 struct TimeoutIter *next;
15 struct TimeoutIter *prev;
16
17 struct Timeout *t;
18};
19
20struct Timeout *timeout_create (DBusTimeout *timeout);
21void timeout_ref (struct Timeout *t);
22void timeout_unref (struct Timeout *t);
23
24void timeout_schedule (struct Timeout *t);
25void timeout_unschedule (struct Timeout *t);
26void do_timeout_unschedule (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
27
28struct TimeoutIter *timeout_find (struct TimeoutIter *, DBusTimeout *timeout);
29
30#endif
31