/************************************************************************ ** * ** Copyright © 1996 Digital Equipment Corporation. * ** All rights reserved. * ** * ** Redistribution and use in source and binary forms are permitted * ** provided that the above copyright notice and this paragraph are * ** duplicated in all such forms and that any documentation, * ** advertising materials, and other materials related to such * ** distribution and use acknowledge that the software was developed * ** by Digital Equipment Corporation. The name of the * ** Corporation may not be used to endorse or promote products derived * ** from this software without specific prior written permission. * ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * ** IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * ** WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * ** * ************************************************************************* **++ ** FACILITY: ** ** ppp_timer.h. ** ** ABSTRACT: ** ** Constant defintions and external defs of variables in ppp_timer.c ** ** AUTHORS: ** ** Patrick Crilly, Networks Engineering (Australia). ** ** CREATION DATE: ** ** 27-November-1995 ** ** MODIFICATION HISTORY: ** ** 17-December-1996 Barry W. Kierstein ** Replaced the standard Digital copyright with ** one compatible with the CMU copyright. ** ** 24-July-1996 Barry W. Kierstein ** Corrected copyright notice. ** ** 27-November-1995 Original version. ** **-- */ #ifndef _PPP_TIMER_H_ #define _PPP_TIMER_H_ /* ** ** import definitions: ** prototype macro ** types ** */ #ifndef _PPPD_H_ #include "pppd.h" #endif /* ** Define the PPP timer delta. For this release the PPP timer ** runs at 100 ms intervals. On VMS, the clock runs in 100 ns ** intervals, hence the definition of 1000000 for ** PPP_TIMER_INTERVAL */ #define PPP_TIMER_INTERVAL 1000000 /* ** Define timer structure */ typedef struct timerEntry { int ticksToFire; /* ticks left until timeout */ caddr_t param; /* argument to timeout routine */ void (*func)(); /* timeout routine to call */ struct timerEntry *next; /* pointer to the next timer */ } timerEntry; /* ** Prototypes */ void timeout(void (*)(), caddr_t, int); void untimeout(void (*)(), caddr_t); void timerInit(void); void timerPoll(void); #endif /* _PPP_TIMER_H_ */