mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcDevicePathLib: Import API to find device path terminator
This commit is contained in:
parent
e827fbe4d3
commit
3d58e26acc
@ -39,6 +39,18 @@ AppendFileNameDevicePath (
|
||||
IN CHAR16 *FileName
|
||||
);
|
||||
|
||||
/**
|
||||
Locate the terminating node inside the device path.
|
||||
|
||||
@param[in] DevicePath The device path used in the search.
|
||||
|
||||
@return Returned is the last Device Path Node.
|
||||
**/
|
||||
EFI_DEVICE_PATH_PROTOCOL *
|
||||
FindDevicePathEndNode (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||
);
|
||||
|
||||
/**
|
||||
Locate the node inside the device path specified by Type an SubType values.
|
||||
|
||||
|
||||
@ -70,6 +70,18 @@ AppendFileNameDevicePath (
|
||||
return AppendedDevicePath;
|
||||
}
|
||||
|
||||
EFI_DEVICE_PATH_PROTOCOL *
|
||||
FindDevicePathEndNode (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||
)
|
||||
{
|
||||
while (!IsDevicePathEnd (DevicePath)) {
|
||||
DevicePath = NextDevicePathNode (DevicePath);
|
||||
}
|
||||
|
||||
return DevicePath;
|
||||
}
|
||||
|
||||
EFI_DEVICE_PATH_PROTOCOL *
|
||||
FindDevicePathNodeWithType (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user