diff options
author | Patrick McHardy <kaber@trash.net> | 2010-11-15 19:02:02 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-11-16 15:13:28 +0100 |
commit | 293fb1e809dc73d71bd67f07d8539323065e1809 (patch) | |
tree | c347c3d5b74b2efcaf0f321c3f89ab6ff4b94c56 /include/timer.h | |
parent | d84f619c3a5f8eabab9999f04abbb7f1af8a5d82 (diff) |
timer: export timer functions declarations
The functions are already exported, also export the declarations
since they are useful and easier to use than f.i. using libevent
directly.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/timer.h')
-rw-r--r-- | include/timer.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/timer.h b/include/timer.h index 5ff9033..665add4 100644 --- a/include/timer.h +++ b/include/timer.h @@ -8,6 +8,7 @@ #define _LIBDECT_TIMER_H #include <utils.h> +#include <dect/timer.h> struct dect_handle; @@ -32,14 +33,4 @@ struct dect_timer { uint8_t priv[] __aligned(__alignof__(uint64_t)); }; -extern struct dect_timer *dect_timer_alloc(const struct dect_handle *dh); -extern void dect_timer_free(const struct dect_handle *dh, struct dect_timer *timer); -extern void dect_timer_setup(struct dect_timer *timer, - void (*cb)(struct dect_handle *, struct dect_timer *), - void *data); -extern void dect_timer_start(const struct dect_handle *dh, - struct dect_timer *timer, unsigned int timeout); -extern void dect_timer_stop(const struct dect_handle *dh, struct dect_timer *timer); -extern bool dect_timer_running(const struct dect_timer *timer); - #endif /* _LIBDECT_TIMER_H */ |