summaryrefslogtreecommitdiffstats
path: root/linux/timer.h
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-25 14:24:11 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-25 14:24:11 +0000
commitcb7768f9bb35b55ae27835525cc6effe19ad099f (patch)
tree06f86a0c604bd9ae58a8135787b9b4a69f25ac95 /linux/timer.h
parent1fe9e6e3bb85b1e85bb0164a7a28115d091da883 (diff)
downloadmpv-cb7768f9bb35b55ae27835525cc6effe19ad099f.tar.bz2
mpv-cb7768f9bb35b55ae27835525cc6effe19ad099f.tar.xz
POSIX compatible timer's callback
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4864 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'linux/timer.h')
-rw-r--r--linux/timer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/timer.h b/linux/timer.h
index d51155f8a8..efda23ad6c 100644
--- a/linux/timer.h
+++ b/linux/timer.h
@@ -1,3 +1,5 @@
+#ifndef __TIMER_H
+#define __TIMER_H
void InitTimer();
unsigned int GetTimer();
@@ -7,3 +9,9 @@ float GetRelativeTime();
int usec_sleep(int usec_delay);
+/* timer's callback handling */
+typedef void timer_callback( void );
+extern unsigned set_timer_callback(unsigned ms,timer_callback func);
+extern void restore_timer(void);
+
+#endif