]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/Library/SortLib.h
updating headers from code review.
[mirror_edk2.git] / ShellPkg / Include / Library / SortLib.h
index ecc538e4b379099b0722872629ee116813482ded..1345a52d59a61a52944d15cbdb0f9208016aa133 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Library used for sorting routines.\r
+  Library used for sorting and comparison routines.\r
 \r
 Copyright (c) 2009, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
@@ -59,4 +59,20 @@ PerformQuickSort (
   IN       SORT_COMPARE                 CompareFunction\r
   );\r
 \r
+\r
+/**\r
+  Function to compare 2 device paths for use as CompareFunction.\r
+\r
+  @param[in] Buffer1            pointer to Device Path to compare\r
+  @param[in] Buffer2            pointer to second DevicePath to compare\r
+\r
+  @retval 0                           Buffer1 equal to Buffer2\r
+  @return < 0                         Buffer1 is less than Buffer2\r
+  @return > 0                         Buffer1 is greater than Buffer2                     \r
+**/\r
+INTN\r
+DevicePathCompare (\r
+  IN  VOID             *Buffer1,\r
+  IN  VOID             *Buffer2\r
+  );\r
 #endif //__SORT_LIB_H__\r