summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/dat.h
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-08-15 02:59:49 +0000
committerJacob Moody <moody@posixcafe.org>2022-08-15 02:59:49 +0000
commit8906ad7c15744271d0f6a41ae2f590a8bc31bf21 (patch)
treeed459c7f4f912774921642a911949f75058f5d9e /sys/src/cmd/rio/dat.h
parent4df168d98fb7b73e50d702b70ceffcaddfe8203c (diff)
rio: add /dev/kbdtap
Diffstat (limited to 'sys/src/cmd/rio/dat.h')
-rw-r--r--sys/src/cmd/rio/dat.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/dat.h b/sys/src/cmd/rio/dat.h
index dac32da5f..96ad631b1 100644
--- a/sys/src/cmd/rio/dat.h
+++ b/sys/src/cmd/rio/dat.h
@@ -18,6 +18,7 @@ enum
Qwindow,
Qwsys, /* directory of window directories */
Qwsysdir, /* window directory, child of wsys */
+ Qtap,
QMAX,
};
@@ -40,6 +41,7 @@ typedef struct Timer Timer;
typedef struct Wctlmesg Wctlmesg;
typedef struct Window Window;
typedef struct Xfid Xfid;
+typedef struct Tapmesg Tapmesg;
enum
{
@@ -117,7 +119,19 @@ struct Mouseinfo
ulong lastcounter; /* serial no. of last mouse event sent to client */
int lastb; /* last button state we received */
uchar qfull; /* filled the queue; no more recording until client comes back */
-};
+};
+
+enum{
+ Fon = 'b',
+ Foff = 'e',
+ Freset = 'r',
+};
+
+struct Tapmesg
+{
+ char type;
+ char *s;
+};
struct Window
{
@@ -313,6 +327,8 @@ int nwindow;
int snarffd;
int gotscreen;
int servekbd;
+Channel *fromtap; /* input from kbd tap program to window */
+Channel *totap; /* our keyboard input to tap program */
Window *input;
QLock all; /* BUG */
Filsys *filsys;