timer.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _KLONE_TIMERM_H_
00012 #define _KLONE_TIMERM_H_
00013
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017
00018 struct timerm_s;
00019 typedef struct timerm_s timerm_t;
00020
00021 struct talarm_s;
00022 typedef struct talarm_s talarm_t;
00023
00024 typedef int (*talarm_cb_t)(talarm_t *, void *arg);
00025
00026 int timerm_add(int secs, talarm_cb_t cb, void *arg, talarm_t **pa);
00027 int timerm_del(talarm_t *a);
00028 int timerm_reschedule(talarm_t *a, int secs, talarm_cb_t cb, void *arg);
00029
00030 #ifdef __cplusplus
00031 }
00032 #endif
00033
00034 #endif