summaryrefslogtreecommitdiff
path: root/src/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sched.h')
-rw-r--r--src/sched.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/sched.h b/src/sched.h
new file mode 100644
index 0000000..853cee0
--- /dev/null
+++ b/src/sched.h
@@ -0,0 +1,20 @@
+
+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