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 <heinrich.schuchardt@canonical.com>
This commit is contained in:
Heinrich Schuchardt
2022-09-03 15:56:51 +02:00
parent afb70d1ef4
commit b33f246c0b
4 changed files with 41 additions and 36 deletions

View File

@@ -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
*