Merge branch 'scripting-python' (early part) into screen-scripting-soc
[screen-lua.git] / src / sched.h
blobfe94642af649be5f5207b0b7c95b6688dbc2eeee
1 /* Copyright (c) 2008, 2009
2 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Micah Cowan (micah@cowan.name)
5 * Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
6 * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
7 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
8 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
9 * Copyright (c) 1987 Oliver Laumann
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3, or (at your option)
14 * any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program (see the file COPYING); if not, see
23 * http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 ****************************************************************
27 * $Id$ FAU
30 struct event
32 struct event *next;
33 void (*handler) __P((struct event *, char *));
34 char *data;
35 int fd;
36 int type;
37 int pri;
38 struct timeval timeout;
39 int queued; /* in evs queue */
40 int active; /* in fdset */
41 int *condpos; /* only active if condpos - condneg > 0 */
42 int *condneg;
45 #define EV_TIMEOUT 0
46 #define EV_READ 1
47 #define EV_WRITE 2
48 #define EV_ALWAYS 3