From b33f246c0b6affe16c5df1459fe6d35c15a3c672 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 3 Sep 2022 15:56:51 +0200 Subject: efi_selftest: export efi_st_get_config_table() We can use efi_st_get_config_table() in multiple unit tests. Export the function. Export system-table and boot-services. Signed-off-by: Heinrich Schuchardt --- include/efi_selftest.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/efi_selftest.h b/include/efi_selftest.h index 5340cefbb6f..e900cb85a96 100644 --- a/include/efi_selftest.h +++ b/include/efi_selftest.h @@ -18,6 +18,9 @@ #define EFI_ST_FAILURE 1 #define EFI_ST_SUCCESS_STR u"SUCCESS" +extern const struct efi_system_table *st_systable; +extern const struct efi_boot_services *st_boottime; + /** * efi_st_printf() - print a message * @@ -130,6 +133,14 @@ u16 *efi_st_translate_code(u16 code); */ int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2); +/** + * efi_st_get_config_table() - get configuration table + * + * @guid: GUID of the configuration table + * Return: pointer to configuration table or NULL + */ +void *efi_st_get_config_table(const efi_guid_t *guid); + /** * efi_st_get_key() - reads an Unicode character from the input device * -- cgit v1.2.3