summaryrefslogtreecommitdiffstats
path: root/include/utils.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-05-23 05:47:13 +0200
committerPatrick McHardy <kaber@trash.net>2009-05-23 05:47:13 +0200
commita489a1626bcf6696afca341d27c0f4c9e59f040f (patch)
treee1ab0144bc84ab0543860802c148ec7861aeab13 /include/utils.h
parente795362c3761092d1c7346f6021d38dc95f8338d (diff)
utils: add running/stopped state to timers
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/utils.h')
-rw-r--r--include/utils.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/utils.h b/include/utils.h
index e999c04..6eeaf70 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -1,4 +1,4 @@
-#ifndef _UITLS_H
+#ifndef _UTILS_H
#define _UTILS_H
#include <assert.h>
@@ -22,6 +22,11 @@ extern void *dect_malloc(const struct dect_handle *dh, size_t size);
extern void *dect_zalloc(const struct dect_handle *dh, size_t size);
extern void dect_free(const struct dect_handle *dh, void *ptr);
+enum dect_timer_state {
+ DECT_TIMER_STOPPED,
+ DECT_TIMER_RUNNING,
+};
+
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 *),