summaryrefslogtreecommitdiff
path: root/src/sched.h
diff options
context:
space:
mode:
authorjnweiger <jnweiger>2005-12-15 15:53:32 +0000
committerjnweiger <jnweiger>2005-12-15 15:53:32 +0000
commit91f7dc8e5d2d4225f532e698030a89c71a1cc451 (patch)
tree7f8f7a90f122d97b7777c23b42d1e63873284aab /src/sched.h
parent8b9339a5f62b31ff25b3ebc6526701be8b0b6ef1 (diff)
downloadscreen-91f7dc8e5d2d4225f532e698030a89c71a1cc451.tar.gz
Initial checkin of screen-4.0.2 as found on SUSE 10.0
Diffstat (limited to 'src/sched.h')
-rw-r--r--src/sched.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/sched.h b/src/sched.h
new file mode 100644
index 0000000..b3fca92
--- /dev/null
+++ b/src/sched.h
@@ -0,0 +1,43 @@
+/* Copyright (c) 1993-2002
+ * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
+ * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
+ * Copyright (c) 1987 Oliver Laumann
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program (see the file COPYING); if not, write to the
+ * Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ ****************************************************************
+ * $Id$ FAU
+ */
+
+struct event
+{
+ struct event *next;
+ void (*handler) __P((struct event *, char *));
+ char *data;
+ int fd;
+ int type;
+ int pri;
+ struct timeval timeout;
+ int queued; /* in evs queue */
+ int active; /* in fdset */
+ int *condpos; /* only active if condpos - condneg > 0 */
+ int *condneg;
+};
+
+#define EV_TIMEOUT 0
+#define EV_READ 1
+#define EV_WRITE 2
+#define EV_ALWAYS 3