1/* Copyright (c) 1993-2002
2 *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Copyright (c) 1987 Oliver Laumann
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program (see the file COPYING); if not, write to the
18 * Free Software Foundation, Inc.,
19 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
20 *
21 ****************************************************************
22 * $Id: sched.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU
23 */
24
25struct event
26{
27  struct event *next;
28  void (*handler) __P((struct event *, char *));
29  char *data;
30  int fd;
31  int type;
32  int pri;
33  struct timeval timeout;
34  int queued;		/* in evs queue */
35  int active;		/* in fdset */
36  int *condpos;		/* only active if condpos - condneg > 0 */
37  int *condneg;
38};
39
40#define EV_TIMEOUT	0
41#define EV_READ		1
42#define EV_WRITE	2
43#define EV_ALWAYS	3
44