diff options
author | rsc <devnull@localhost> | 2006-06-25 18:59:29 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-25 18:59:29 +0000 |
commit | 74dc60da74c62e07f0d63179da9724d705794a6d (patch) | |
tree | bfb0bcf94115ebc5b142c3ad4d80157288ee8368 /src/libdraw/event.c | |
parent | 324891a5579d6f504201a6107369c64dab245a98 (diff) | |
download | plan9port-74dc60da74c62e07f0d63179da9724d705794a6d.tar.gz plan9port-74dc60da74c62e07f0d63179da9724d705794a6d.tar.bz2 plan9port-74dc60da74c62e07f0d63179da9724d705794a6d.zip |
bye
Diffstat (limited to 'src/libdraw/event.c')
-rw-r--r-- | src/libdraw/event.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/libdraw/event.c b/src/libdraw/event.c index 2f67cde8..6e4d7f5c 100644 --- a/src/libdraw/event.c +++ b/src/libdraw/event.c @@ -1,28 +1,12 @@ #include <u.h> +#include <sys/select.h> #include <libc.h> #include <draw.h> #include <cursor.h> #include <event.h> -typedef struct Slave Slave; -typedef struct Ebuf Ebuf; -struct Slave -{ - int pid; - Ebuf *head; /* ueue of messages for this descriptor */ - Ebuf *tail; - int (*fn)(int, Event*, uchar*, int); -}; - -struct Ebuf -{ - Ebuf *next; - int n; /* number of bytes in buf */ - uchar buf[EMAXMSG]; -}; -static Slave eslave[MAXSLAVE]; static int Skeyboard = -1; static int Smouse = -1; static int Stimer = -1; |