From 4db7e6d781c2d9bba4e9124d26e811dd4addc1c5 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 11 Mar 2015 23:26:48 +0100 Subject: boot: efi - add config option to disable the command line editor --- src/boot/efi/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/boot/efi/util.h') 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); -- cgit v1.2.3-54-g00ecf