Merge branch 'master' into lua-scripting
[screen-lua.git] / src / sched.h
blobb3fca926eafc4a8d8d995beac2aa2474ea3c7e1f
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
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.
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.
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
21 ****************************************************************
22 * $Id$ FAU
25 struct event
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;
40 #define EV_TIMEOUT 0
41 #define EV_READ 1
42 #define EV_WRITE 2
43 #define EV_ALWAYS 3