summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-11-22 09:47:16 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-11-25 08:43:59 +0100
commit92fe157a8b5eeeb1baa7204a3245770df6131f02 (patch)
treeb6a4f6eca2ba5553c05ea975d18f7510a789f803 /include
parent09e48b3d17468d15e89f023c5086f0d9425a3003 (diff)
downloadbarebox-92fe157a8b5eeeb1baa7204a3245770df6131f02.tar.gz
barebox-92fe157a8b5eeeb1baa7204a3245770df6131f02.tar.xz
efi: centralize efivarfs_parse_filename
Turning an EFI varfs filename into its components will be useful for the EFI loader as well, so factor that out. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211122084732.2597109-15-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/efi/efi-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/efi/efi-util.h b/include/efi/efi-util.h
index 0645af2707..78e352456a 100644
--- a/include/efi/efi-util.h
+++ b/include/efi/efi-util.h
@@ -7,4 +7,8 @@
const char *efi_strerror(efi_status_t err);
int efi_errno(efi_status_t err);
+int __efivarfs_parse_filename(const char *filename, efi_guid_t *vendor,
+ s16 *name, size_t *namelen);
+int efivarfs_parse_filename(const char *filename, efi_guid_t *vendor, s16 **name);
+
#endif