]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.h
ShellPkg/ShellCommandLib: add ShellSortFileList()
[mirror_edk2.git] / ShellPkg / Library / UefiShellCommandLib / UefiShellCommandLib.h
index 8ecc2f6bf5a2824b3760a9d1e3ec62a4a7606424..0ca291e4f9bf94ce2acf1a7430529f8b59bdb7b1 100644 (file)
@@ -39,6 +39,7 @@
 #include <Library/HiiLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/UefiLib.h>\r
+#include <Library/OrderedCollectionLib.h>\r
 \r
 typedef struct{\r
   LIST_ENTRY                  Link;\r
@@ -60,6 +61,24 @@ typedef struct {
   CHAR16            *Path;\r
 } SHELL_COMMAND_FILE_HANDLE;\r
 \r
+//\r
+// Collects multiple EFI_SHELL_FILE_INFO objects that share the same name.\r
+//\r
+typedef struct {\r
+  //\r
+  // A string that compares equal to either the FileName or the FullName fields\r
+  // of all EFI_SHELL_FILE_INFO objects on SameNameList, according to\r
+  // gUnicodeCollation->StriColl(). The string is not dynamically allocated;\r
+  // instead, it *aliases* the FileName or FullName field of the\r
+  // EFI_SHELL_FILE_INFO object that was first encountered with this name.\r
+  //\r
+  CONST CHAR16 *Alias;\r
+  //\r
+  // A list of EFI_SHELL_FILE_INFO objects whose FileName or FullName fields\r
+  // compare equal to Alias, according to gUnicodeCollation->StriColl().\r
+  //\r
+  LIST_ENTRY SameNameList;\r
+} SHELL_SORT_UNIQUE_NAME;\r
 \r
 #endif //_UEFI_COMMAND_LIB_INTERNAL_HEADER_\r
 \r