summaryrefslogtreecommitdiffstats
path: root/include/utils.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-05-22 02:12:55 +0200
committerPatrick McHardy <kaber@trash.net>2009-05-22 02:12:55 +0200
commitdbf68ba8b3ed2da583517d43b5612e040a4560cf (patch)
treec4485fb1276b4929e891fc89d8469c9d55f9d6ab /include/utils.h
parent35e51f08f54bbd60cec48b028ca6148ab29311cc (diff)
utils: add timer setup helper
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/utils.h')
-rw-r--r--include/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h
index e008bc8..320ce76 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -20,6 +20,9 @@ extern void *dect_zalloc(const struct dect_handle *dh, size_t size);
extern void dect_free(const struct dect_handle *dh, void *ptr);
extern struct dect_timer *dect_alloc_timer(const struct dect_handle *dh);
+extern void dect_setup_timer(struct dect_timer *timer,
+ void (*cb)(struct dect_handle *, struct dect_timer *),
+ void *data);
extern void dect_start_timer(const struct dect_handle *dh,
struct dect_timer *timer, unsigned int timeout);
extern void dect_stop_timer(const struct dect_handle *dh, struct dect_timer *timer);