aboutsummaryrefslogtreecommitdiffstats
path: root/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'timer.h')
-rw-r--r--timer.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/timer.h b/timer.h
index e71ac8d..c470a10 100644
--- a/timer.h
+++ b/timer.h
@@ -1,9 +1,9 @@
-/* $Id: timer.h 728 2007-01-14 11:14:38Z michael $
- * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/timer.h $
+/* $Id: timer.h 1136 2010-11-28 16:07:16Z mzuther $
+ * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/timer.h $
*
* generic timer handling
*
- * Copyright (C) 2003, 2004 Michael Reinelt <reinelt@eunet.at>
+ * Copyright (C) 2003, 2004 Michael Reinelt <michael@reinelt.co.at>
* Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
*
* This file is part of LCD4Linux.
@@ -28,8 +28,15 @@
#ifndef _TIMER_H_
#define _TIMER_H_
+
int timer_add(void (*callback) (void *data), void *data, const int interval, const int one_shot);
+
+int timer_add_late(void (*callback) (void *data), void *data, const int interval, const int one_shot);
+
int timer_process(struct timespec *delay);
-void timer_exit();
+
+int timer_remove(void (*callback) (void *data), void *data);
+
+void timer_exit(void);
#endif