Start converting to GPL v3+ (ref: ticket #23900)
[screen-lua.git] / src / sched.h
blob1470111a49b6ef096eb3c9248359cb37d9bbb91c
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 3, 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, see
18 * http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 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