diff options
Diffstat (limited to 'src/lib/common/timeout.h')
-rw-r--r-- | src/lib/common/timeout.h | 31 |
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 | |||
10 | struct Timeout; | ||
11 | |||
12 | struct TimeoutIter | ||
13 | { | ||
14 | struct TimeoutIter *next; | ||
15 | struct TimeoutIter *prev; | ||
16 | |||
17 | struct Timeout *t; | ||
18 | }; | ||
19 | |||
20 | struct Timeout *timeout_create (DBusTimeout *timeout); | ||
21 | void timeout_ref (struct Timeout *t); | ||
22 | void timeout_unref (struct Timeout *t); | ||
23 | |||
24 | void timeout_schedule (struct Timeout *t); | ||
25 | void timeout_unschedule (struct Timeout *t); | ||
26 | void do_timeout_unschedule (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
27 | |||
28 | struct TimeoutIter *timeout_find (struct TimeoutIter *, DBusTimeout *timeout); | ||
29 | |||
30 | #endif | ||
31 | |||