2, Add DevicePathLib library class to module's INF that use device path utility macros
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6458
6f19259b-4bc3-4df7-8a09-
765794883524
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/DebugLib.h>\r
+#include <Library/DevicePathLib.h>\r
\r
/**\r
This function returns the size, in bytes,\r
\r
/**\r
This function returns the size, in bytes,\r
// Search for the end of the device path structure\r
//\r
Start = DevicePath;\r
// Search for the end of the device path structure\r
//\r
Start = DevicePath;\r
- while (!EfiIsDevicePathEnd (DevicePath)) {\r
- DevicePath = EfiNextDevicePathNode (DevicePath);\r
+ while (!IsDevicePathEnd (DevicePath)) {\r
+ DevicePath = NextDevicePathNode (DevicePath);\r
[LibraryClasses]\r
DebugLib\r
UefiBootServicesTableLib\r
[LibraryClasses]\r
DebugLib\r
UefiBootServicesTableLib\r
\r
[Protocols]\r
gEfiLoadedImageProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
\r
[Protocols]\r
gEfiLoadedImageProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/PrintLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/PrintLib.h>\r
+#include <Library/DevicePathLib.h>\r
BaseMemoryLib\r
BaseLib\r
UefiBootServicesTableLib\r
BaseMemoryLib\r
BaseLib\r
UefiBootServicesTableLib\r
[Protocols]\r
gEfiDriverBindingProtocolGuid # ALWAYS_CONSUMED\r
gEfiComponentNameProtocolGuid # SOMETIMES_CONSUMED\r
[Protocols]\r
gEfiDriverBindingProtocolGuid # ALWAYS_CONSUMED\r
gEfiComponentNameProtocolGuid # SOMETIMES_CONSUMED\r