From 5f08e671e4eb4ec43c1bf667e67f02b7454e13b0 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Fri, 2 Jul 2021 13:57:40 -0400 Subject: test.h: add some decls for some of the stuff in efilib.h In some test cases, it's useful to be able to call some of the very common stuff in gnu-efi's efilib.h (i.e. CompareGuid()), but including that header itself is too big for me to tackle right now. This patch adds a few more decls to test.h. Signed-off-by: Peter Jones --- include/test.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/test.h b/include/test.h index 1d9c7be3..811f92bf 100644 --- a/include/test.h +++ b/include/test.h @@ -48,6 +48,17 @@ #define FreePool(x) free(x) #define ReallocatePool(old, oldsz, newsz) realloc(old, newsz) +INTN StrnCmp(IN CONST CHAR16 *s1, + IN CONST CHAR16 *s2, + IN UINTN len); +CHAR16 *StrDuplicate(IN CONST CHAR16 *Src); +UINTN StrLen(IN CONST CHAR16 *s1); +UINTN StrSize(IN CONST CHAR16 *s1); +VOID StrCat(IN CHAR16 *Dest, IN CONST CHAR16 *Src); +CHAR16 *DevicePathToStr(EFI_DEVICE_PATH *DevPath); + +#define CompareGuid(a, b) memcmp(a, b, sizeof(a)) + extern int debug; #ifdef dprint #undef dprint -- cgit v1.2.3