diff options
author | Heinrich Schuchardt | 2018-09-11 22:38:04 +0200 |
---|---|---|
committer | Alexander Graf | 2018-09-23 21:55:30 +0200 |
commit | 262ff411c25c4700cc41aea6cff4d27330ad006e (patch) | |
tree | 20be64349877b0f977bf06016123b1bc3cb54756 /include | |
parent | 7d044886c963d3df9eca00ed7fb0fa4004b68330 (diff) |
efi_selftest: refactor text input test
Move reusable utility functions to efi_selftest_util.c.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/efi_selftest.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/efi_selftest.h b/include/efi_selftest.h index 59b3c080bde..56beac305ec 100644 --- a/include/efi_selftest.h +++ b/include/efi_selftest.h @@ -76,6 +76,22 @@ void efi_st_exit_boot_services(void); void efi_st_printc(int color, const char *fmt, ...) __attribute__ ((format (__printf__, 2, 3))); +/** + * efi_st_translate_char() - translate a unicode character to a string + * + * @code: unicode character + * Return: string + */ +u16 *efi_st_translate_char(u16 code); + +/** + * efi_st_translate_code() - translate a scan code to a human readable string + * + * @code: unicode character + * Return: string + */ +u16 *efi_st_translate_code(u16 code); + /* * Compare memory. * We cannot use lib/string.c due to different CFLAGS values. |