[if gte mso 9]>

Re: [edk2] Comparing two device paths

Subject: Re: [edk2] Comparing two device paths

From: "Carsey, Jaben" <jaben.carsey@intel.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2013-09-20 22:48:25

Look in SortLib in the ShellPkg.  It’s signature will be a little odd since it’s return is based on quicksorting…

 

/**

  Function to compare 2 device paths for use as CompareFunction.

 

  @param[in] Buffer1            The pointer to Device Path to compare.

  @param[in] Buffer2            The 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

EFIAPI

DevicePathCompare (

  IN  CONST VOID                *Buffer1,

  IN  CONST VOID                *Buffer2

  );

 

 

 

 

From: duck wilson [mailto:duck.54321@gmail.com]
Sent: Friday, September 20, 2013 6:30 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Comparing two device paths

 

Is there and EDK2 library function to compare two device paths for being the same or different, i.e., equal or not equal?

 

TIA!