diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-11-20 20:52:12 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-11-20 20:52:12 +0000 |
commit | 78cd3d924f3b9c6e1f8fe9473270108afb6a588a (patch) | |
tree | 84041e5bdf0726efa20cacdc4a2a1507e25e5399 /sys/dev/wscons/wscons_callbacks.h | |
parent | 55fec1d62ee880c647d9e50466a87902ad11b6ba (diff) |
Change wsdisplay_kbdinput() to get an aray of keysym_t and a count, instead of
a single keysym_t at a time - this means tty sanity checks will only happen
once.
Introduce wsdisplay_rawkbdinput() for raw mode input, since raw input is
a byte array. As a bonus this allows us to skip the `is this a KS_GROUP_Ascii
value' test in that case.
Diffstat (limited to 'sys/dev/wscons/wscons_callbacks.h')
-rw-r--r-- | sys/dev/wscons/wscons_callbacks.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/wscons/wscons_callbacks.h b/sys/dev/wscons/wscons_callbacks.h index 6d743f342db..48933af6332 100644 --- a/sys/dev/wscons/wscons_callbacks.h +++ b/sys/dev/wscons/wscons_callbacks.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wscons_callbacks.h,v 1.7 2006/08/05 16:59:57 miod Exp $ */ +/* $OpenBSD: wscons_callbacks.h,v 1.8 2010/11/20 20:52:10 miod Exp $ */ /* $NetBSD: wscons_callbacks.h,v 1.16 2001/11/10 17:14:51 augustss Exp $ */ /* @@ -41,7 +41,8 @@ void wsdisplay_set_console_kbd(struct wsevsrc *); /* * Calls to the display interface from the keyboard interface. */ -void wsdisplay_kbdinput(struct device *v, keysym_t); +void wsdisplay_kbdinput(struct device *v, keysym_t *, int); +void wsdisplay_rawkbdinput(struct device *v, u_char *, int); int wsdisplay_switch(struct device *, int, int); enum wsdisplay_resetops { WSDISPLAY_RESETEMUL, |