summaryrefslogtreecommitdiff
path: root/src/boot/efi/util.h
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-03-11 23:26:48 +0100
committerKay Sievers <kay@vrfy.org>2015-03-11 23:33:53 +0100
commit4db7e6d781c2d9bba4e9124d26e811dd4addc1c5 (patch)
tree7dabc81c01520a8cc0eefdf6813ea07d662be40c /src/boot/efi/util.h
parent510c4a0f1e7e7efe2897d2fbb9067f121467b103 (diff)
boot: efi - add config option to disable the command line editor
Diffstat (limited to 'src/boot/efi/util.h')
-rw-r--r--src/boot/efi/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h
index efaafd7492..4727a34d1f 100644
--- a/src/boot/efi/util.h
+++ b/src/boot/efi/util.h
@@ -23,6 +23,12 @@
#define ELEMENTSOF(x) (sizeof(x)/sizeof((x)[0]))
+static inline const CHAR16 *yes_no(BOOLEAN b) {
+ return b ? L"yes" : L"no";
+}
+
+EFI_STATUS parse_boolean(CHAR8 *v, BOOLEAN *b);
+
UINT64 ticks_read(void);
UINT64 ticks_freq(void);
UINT64 time_usec(void);