Please wait until the page is fully downloaded and then press the "Expand" button or the blue line numbers.

0024001 /*
0024002 clock.h
0024003 
0024004 Copyright 1995 Philip Homburg
0024005 */
0024006 
0024007 #ifndef CLOCK_H
0024008 #define CLOCK_H
0024009 
0024010 struct timer;
0024011 
0024012 typedef void (*timer_func_t) ARGS(( int fd, struct timer *timer ));
0024013 
0024014 typedef struct timer
0024015 {
0024016          struct timer *tim_next;
0024017          timer_func_t tim_func;
0024018          int tim_ref;
0024019          time_t tim_time;
0024020          int tim_active;
0024021 } timer_t;
0024022 
0024023 extern int clck_call_expire;       /* Call clck_expire_timer from the mainloop */
0024024 
0024025 void clck_init ARGS(( void ));
0024026 void set_time ARGS(( time_t time ));
0024027 time_t get_time ARGS(( void ));
0024028 void reset_time ARGS(( void ));
0024029 /* set a timer to go off at the time specified by timeout */
0024030 void clck_timer ARGS(( struct timer *timer, time_t timeout, timer_func_t func,
0024031                                                         int fd ));
0024032 void clck_untimer ARGS(( struct timer *timer ));
0024033 void clck_expire_timers ARGS(( void ));
0024034 
0024035 #endif /* CLOCK_H */
0024036 
0024037 /*
0024038  * $PchId: clock.h,v 1.5 1995/11/21 06:45:27 philip Exp $
0024039  */