summaryrefslogtreecommitdiff
path: root/include/efi_selftest.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-09-03 15:56:51 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-09-09 16:07:54 +0200
commitb33f246c0b6affe16c5df1459fe6d35c15a3c672 (patch)
treec4ca2aeca6cb01ed733b7ea4cd1f8877c22d7416 /include/efi_selftest.h
parentafb70d1ef48850c3e40ca57926a20cef79804fe2 (diff)
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>
Diffstat (limited to 'include/efi_selftest.h')
-rw-r--r--include/efi_selftest.h11
1 files changed, 11 insertions, 0 deletions
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
*
@@ -131,6 +134,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
*
* Return: Unicode character