OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / diald / timer.h
1 /*
2  * timer.h - This timer structure was originally based upon the one in
3  *           the linux kernel, but has since evolved somewhat.
4  *
5  * Copyright (c) 1994, 1995, 1996 Eric Schenk.
6  * All rights reserved. Please see the file LICENSE which should be
7  * distributed with this software for terms of use.
8  */
9
10 struct timer_lst {
11         struct timer_lst *next;
12         struct timer_lst *prev;
13         unsigned long expires;                  /* how long till expiration */
14         unsigned long expected;                 /* expected time of timeout */
15         unsigned long data;                     /* data to pass to function */
16         void (*function)(unsigned long);        /* func to call on timeout */
17 };
18
19 extern void add_timer(struct timer_lst * timer);
20 extern int  del_timer(struct timer_lst * timer);
21 extern void init_timer(struct timer_lst * timer);
22 extern void adjust_timer(void);
23 extern unsigned long timestamp(void);