]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/term: Make grub_getkeystatus() helper function available everywhere
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Apr 2020 10:26:18 +0000 (12:26 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 21 Apr 2020 20:08:52 +0000 (22:08 +0200)
commit5bcdf676421308f463d0917e3e5eac04f41ee608
tree0f297679bd789e2a3a3ab32199301e54b289b3da
parent30586747f1d66968936d93506f0bd16df33844ea
kern/term: Make grub_getkeystatus() helper function available everywhere

Move grub_getkeystatushelper() function from grub-core/commands/keystatus.c
to grub-core/kern/term.c and export it so that it can be used outside of
the keystatus command code too.

There's no logic change in this patch. The function definition is moved so
it can be called from grub-core/kern/term.c in a subsequent patch. It will
be used to determine if a SHIFT key has was held down and use that also to
interrupt the countdown, without the need to press a key at the right time.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/commands/keystatus.c
grub-core/kern/term.c
include/grub/term.h