summaryrefslogtreecommitdiff
path: root/src/boot/efi/efi-string.h
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-06-09 10:05:52 +0200
committerJan Janssen <medhefgo@web.de>2022-06-09 12:50:08 +0200
commit0e8ecba96e72ecb57a5f2a668b645214e2f3b12b (patch)
tree3ff942fff9bf68ed2469a1d5dd1a18bcf19aaa67 /src/boot/efi/efi-string.h
parent2299b1cae32c1fb8911da0ce26efced68032f4f8 (diff)
downloadsystemd-0e8ecba96e72ecb57a5f2a668b645214e2f3b12b.tar.gz
boot: Add efi_fnmatch
Unlike MetaiMatch from the UEFI spec/EDK2 this implementation is intended to be compatible with POSIX fnmatch.
Diffstat (limited to 'src/boot/efi/efi-string.h')
-rw-r--r--src/boot/efi/efi-string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/boot/efi/efi-string.h b/src/boot/efi/efi-string.h
index b4870975bc..55c9c6e47a 100644
--- a/src/boot/efi/efi-string.h
+++ b/src/boot/efi/efi-string.h
@@ -99,6 +99,8 @@ static inline char16_t *xstrdup16(const char16_t *s) {
return xstrndup16(s, SIZE_MAX);
}
+bool efi_fnmatch(const char16_t *pattern, const char16_t *haystack);
+
#ifdef SD_BOOT
/* The compiler normally has knowledge about standard functions such as memcmp, but this is not the case when
* compiling with -ffreestanding. By referring to builtins, the compiler can check arguments and do