summaryrefslogtreecommitdiff
path: root/include/charset.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-09-12 01:05:32 +0300
committerAlexander Graf <agraf@suse.de>2018-09-23 22:55:30 +0300
commit35cbb796aa85dadeb5451104c536a33acf1ebcfe (patch)
tree454c631a5c4590fd5c0246c76f4a4fd3fb02bc81 /include/charset.h
parentcce289a928583a64db6ec8f813cc7884ae62c213 (diff)
downloadu-boot-35cbb796aa85dadeb5451104c536a33acf1ebcfe.tar.xz
efi_loader: support Unicode text input
Up to now the EFI_TEXT_INPUT_PROTOCOL only supported ASCII characters. With the patch it can consume UTF-8 from the console. Currently only the serial console and the console can deliver UTF-8. Local consoles are restricted to ASCII. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/charset.h')
-rw-r--r--include/charset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/charset.h b/include/charset.h
index 686db5a1fe..4d45e246e5 100644
--- a/include/charset.h
+++ b/include/charset.h
@@ -14,6 +14,14 @@
#define MAX_UTF8_PER_UTF16 3
/**
+ * console_read_unicode() - read Unicode code point from console
+ *
+ * @code: pointer to store Unicode code point
+ * Return: 0 = success
+ */
+int console_read_unicode(s32 *code);
+
+/**
* utf8_get() - get next UTF-8 code point from buffer
*
* @src: pointer to current byte, updated to point to next byte