00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __OSKA_TIMER_H
00010 #define __OSKA_TIMER_H
00011
00012 #ifdef __OSKA_API_DOC
00013
00026 typedef implementation_defined os_timer_t;
00027
00037 typedef void (*os_timer_func_t)(void *arg);
00038
00050 void os_timer_init(os_timer_t *timer, os_timer_func_t func, void *arg);
00051
00062 void os_timer_destroy(os_timer_t *timer);
00063
00078 void os_timer_set(os_timer_t *timer, unsigned long expires_ms);
00079
00095 void os_timer_cancel(os_timer_t *timer);
00096
00097 #endif
00098
00099 typedef void (*os_timer_func_t)(void *arg);
00100
00101 #ifdef linux
00102 # include <../linux/timer.h>
00103 #elif defined (KMDF_MAJOR_VERSION)
00104 # include <../windows/kmdf/timer.h>
00105 #else
00106 # error <oska/timer.h> not provided for this OS
00107 #endif
00108
00109 #endif