]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/zhm/timer.h
77595be5a5a766e836f962706267dedf0ced39b2
[1ts-debian.git] / zephyr / zhm / timer.h
1 /* This file is part of the Project Athena Zephyr Notification System.
2  * It contains definitions used by timer.c
3  *
4  *      Created by:     John T. Kohl
5  *      Derived from timer_manager_.h by Ken Raeburn
6  *
7  *      $Id$
8  *
9  */
10
11 #ifndef __TIMER_H
12
13 /*
14  * timer_manager_ -- routines for handling timers in login_shell
15  * (and elsewhere)
16  *
17  * Copyright 1986 Student Information Processing Board,
18  * Massachusetts Institute of Technology
19  *
20  * written by Ken Raeburn
21
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.
35
36  */
37
38 typedef void (*timer_proc) __P((void *));
39
40 typedef struct _Timer {
41         int             heap_pos;       /* Position in timer heap */
42         long            abstime;
43         timer_proc      func;
44         void            *arg;
45 } Timer;
46
47 Timer *timer_set_rel __P((long, timer_proc, void *));
48 Timer *timer_set_abs __P((long, timer_proc, void *));
49 void timer_reset __P((Timer *));
50 void timer_process __P((void));
51 struct timeval *timer_timeout __P((struct timeval *tvbuf));
52
53 #endif /* __TIMER_H */
54