| 1 | /*********************************************************** |
| 2 | Copyright IBM Corporation 1987 |
| 3 | |
| 4 | All Rights Reserved |
| 5 | |
| 6 | Permission to use, copy, modify, and distribute this software and its |
| 7 | documentation for any purpose and without fee is hereby granted, |
| 8 | provided that the above copyright notice appear in all copies and that |
| 9 | both that copyright notice and this permission notice appear in |
| 10 | supporting documentation, and that the name of IBM not be |
| 11 | used in advertising or publicity pertaining to distribution of the |
| 12 | software without specific, written prior permission. |
| 13 | |
| 14 | IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING |
| 15 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL |
| 16 | IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR |
| 17 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, |
| 18 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, |
| 19 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS |
| 20 | SOFTWARE. |
| 21 | |
| 22 | ******************************************************************/ |
| 23 | |
| 24 | /* |
| 25 | * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison |
| 26 | */ |
| 27 | /* |
| 28 | * ARGO TP |
| 29 | * |
| 30 | * $Header: tp_timer.h,v 5.1 88/10/12 12:21:41 root Exp $ |
| 31 | * $Source: /usr/argo/sys/netiso/RCS/tp_timer.h,v $ |
| 32 | * |
| 33 | * ARGO TP |
| 34 | * The callout structures used by the tp timers. |
| 35 | */ |
| 36 | |
| 37 | #ifndef __TP_CALLOUT__ |
| 38 | #define __TP_CALLOUT__ |
| 39 | |
| 40 | /* C timers - one per tpcb, generally cancelled */ |
| 41 | |
| 42 | struct Ccallout { |
| 43 | int c_time; /* incremental time */ |
| 44 | int c_active; /* this timer is active? */ |
| 45 | }; |
| 46 | |
| 47 | /* E timers - generally expire or there must be > 1 active per tpcb */ |
| 48 | struct Ecallout { |
| 49 | int c_time; /* incremental time */ |
| 50 | int c_func; /* function to call */ |
| 51 | u_int c_arg1; /* argument to routine */ |
| 52 | u_int c_arg2; /* argument to routine */ |
| 53 | int c_arg3; /* argument to routine */ |
| 54 | struct Ecallout *c_next; |
| 55 | }; |
| 56 | |
| 57 | #endif __TP_CALLOUT__ |