summaryrefslogtreecommitdiff
path: root/ShellPkg/Include/Library/SortLib.h
diff options
context:
space:
mode:
Diffstat (limited to 'ShellPkg/Include/Library/SortLib.h')
-rw-r--r--ShellPkg/Include/Library/SortLib.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/ShellPkg/Include/Library/SortLib.h b/ShellPkg/Include/Library/SortLib.h
index ecc538e4b3..1345a52d59 100644
--- a/ShellPkg/Include/Library/SortLib.h
+++ b/ShellPkg/Include/Library/SortLib.h
@@ -1,5 +1,5 @@
/** @file
- Library used for sorting routines.
+ Library used for sorting and comparison routines.
Copyright (c) 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -59,4 +59,20 @@ PerformQuickSort (
IN SORT_COMPARE CompareFunction
);
+
+/**
+ Function to compare 2 device paths for use as CompareFunction.
+
+ @param[in] Buffer1 pointer to Device Path to compare
+ @param[in] Buffer2 pointer to second DevicePath to compare
+
+ @retval 0 Buffer1 equal to Buffer2
+ @return < 0 Buffer1 is less than Buffer2
+ @return > 0 Buffer1 is greater than Buffer2
+**/
+INTN
+DevicePathCompare (
+ IN VOID *Buffer1,
+ IN VOID *Buffer2
+ );
#endif //__SORT_LIB_H__