1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It contains definitions used by timer.c
4 * Created by: John T. Kohl
5 * Derived from timer_manager_.h by Ken Raeburn
14 * timer_manager_ -- routines for handling timers in login_shell
17 * Copyright 1986 Student Information Processing Board,
18 * Massachusetts Institute of Technology
20 * written by Ken Raeburn
22 Permission to use, copy, modify, and distribute this
23 software and its documentation for any purpose and without
24 fee is hereby granted, provided that the above copyright
25 notice appear in all copies and that both that copyright
26 notice and this permission notice appear in supporting
27 documentation, and that the name of M.I.T. and the Student
28 Information Processing Board not be used in
29 advertising or publicity pertaining to distribution of the
30 software without specific, written prior permission.
31 M.I.T. and the Student Information Processing Board
32 make no representations about the suitability of
33 this software for any purpose. It is provided "as is"
34 without express or implied warranty.
38 typedef void (*timer_proc) __P((void *));
40 typedef struct _Timer {
41 int heap_pos; /* Position in timer heap */
47 Timer *timer_set_rel(long, timer_proc, void *);
48 Timer *timer_set_abs(long, timer_proc, void *);
49 void timer_reset(Timer *);
50 void timer_process(void);
51 struct timeval *timer_timeout(struct timeval *tvbuf);
53 #endif /* __TIMER_H */