X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=NetworkPkg%2FHttpBootDxe%2FHttpBootSupport.h;h=3edea615af290851170c4e206d6b0fdb1b62f3ee;hb=fa848a4048943251fc057fe8d6c5a82e01d2ffb6;hp=8e0fc37fdd8fe5b8cccb615db64f5471bb8def50;hpb=9353c60cea6eeedbbe4b336aea02646e2bf25f47;p=mirror_edk2.git diff --git a/NetworkPkg/HttpBootDxe/HttpBootSupport.h b/NetworkPkg/HttpBootDxe/HttpBootSupport.h index 8e0fc37fdd..3edea615af 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootSupport.h +++ b/NetworkPkg/HttpBootDxe/HttpBootSupport.h @@ -329,4 +329,22 @@ HttpIoRecvResponse ( OUT HTTP_IO_RESPONSE_DATA *ResponseData ); +/** + Get the URI address string from the input device path. + + Caller need to free the buffer in the UriAddress pointer. + + @param[in] FilePath Pointer to the device path which contains a URI device path node. + @param[in] UriAddress The URI address string extract from the device path. + + @retval EFI_SUCCESS The URI string is returned. + @retval EFI_OUT_OF_RESOURCES Failed to allocate memory. + +**/ +EFI_STATUS +HttpBootParseFilePath ( + IN EFI_DEVICE_PATH_PROTOCOL *FilePath, + OUT CHAR8 **UriAddress + ); + #endif