X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellCommandLib%2FUefiShellCommandLib.h;h=0ca291e4f9bf94ce2acf1a7430529f8b59bdb7b1;hp=8ecc2f6bf5a2824b3760a9d1e3ec62a4a7606424;hb=101c55ac0db79b9ccff8b612f11755a3d473a82c;hpb=ef03e72651b8160b31c2b34ce4dfdf25bc328f20 diff --git a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.h b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.h index 8ecc2f6bf5..0ca291e4f9 100644 --- a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.h +++ b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.h @@ -39,6 +39,7 @@ #include #include #include +#include typedef struct{ LIST_ENTRY Link; @@ -60,6 +61,24 @@ typedef struct { CHAR16 *Path; } SHELL_COMMAND_FILE_HANDLE; +// +// Collects multiple EFI_SHELL_FILE_INFO objects that share the same name. +// +typedef struct { + // + // A string that compares equal to either the FileName or the FullName fields + // of all EFI_SHELL_FILE_INFO objects on SameNameList, according to + // gUnicodeCollation->StriColl(). The string is not dynamically allocated; + // instead, it *aliases* the FileName or FullName field of the + // EFI_SHELL_FILE_INFO object that was first encountered with this name. + // + CONST CHAR16 *Alias; + // + // A list of EFI_SHELL_FILE_INFO objects whose FileName or FullName fields + // compare equal to Alias, according to gUnicodeCollation->StriColl(). + // + LIST_ENTRY SameNameList; +} SHELL_SORT_UNIQUE_NAME; #endif //_UEFI_COMMAND_LIB_INTERNAL_HEADER_