OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
Uri.c File Reference

Go to the source code of this file.

Functions

BOOLEAN HasHttpsUri (CHAR16 *Uri)
 
EFI_DEVICE_PATH_PROTOCOL * GetUriNode (EFI_DEVICE_PATH_PROTOCOL *DevicePath)
 
STATIC EFI_STATUS ExtractOtherUriFromUri (IN CHAR8 *Uri, IN CHAR8 *FromExt, IN CHAR8 *ToExt, OUT CHAR8 **OtherUri, IN BOOLEAN OnlySearchForFromExt)
 
EFI_STATUS ExtractOtherUriFromDevicePath (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN CHAR8 *FromExt, IN CHAR8 *ToExt, OUT CHAR8 **OtherUri, IN BOOLEAN OnlySearchForFromExt)
 
BOOLEAN UriFileHasExtension (IN CHAR8 *Uri, IN CHAR8 *Ext)
 
EFI_STATUS HttpBootAddUri (EFI_DEVICE_PATH_PROTOCOL *DevicePath, VOID *Uri, OC_STRING_FORMAT StringFormat, EFI_DEVICE_PATH_PROTOCOL **UriDevicePath)
 

Variables

STATIC EFI_DEVICE_PATH_PROTOCOL mEndDevicePath
 

Detailed Description

URI utilities for HTTP Boot.

Copyright (c) 2024, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file Uri.c.

Function Documentation

◆ ExtractOtherUriFromDevicePath()

EFI_STATUS ExtractOtherUriFromDevicePath ( IN EFI_DEVICE_PATH_PROTOCOL * DevicePath,
IN CHAR8 * FromExt,
IN CHAR8 * ToExt,
OUT CHAR8 ** OtherUri,
IN BOOLEAN OnlySearchForFromExt )

Definition at line 186 of file Uri.c.

◆ ExtractOtherUriFromUri()

STATIC EFI_STATUS ExtractOtherUriFromUri ( IN CHAR8 * Uri,
IN CHAR8 * FromExt,
IN CHAR8 * ToExt,
OUT CHAR8 ** OtherUri,
IN BOOLEAN OnlySearchForFromExt )

< i.e. UriSize > MAX_INTN

< i.e. FromExtSize > MAX_INTN

< i.e. ToExtSize > MAX_INTN

< i.e. OtherUriSize > MAX_INTN

Definition at line 75 of file Uri.c.

◆ GetUriNode()

EFI_DEVICE_PATH_PROTOCOL * GetUriNode ( EFI_DEVICE_PATH_PROTOCOL * DevicePath)

Definition at line 30 of file Uri.c.

◆ HasHttpsUri()

BOOLEAN HasHttpsUri ( CHAR16 * Uri)

Uri.c

Definition at line 20 of file Uri.c.

◆ HttpBootAddUri()

EFI_STATUS HttpBootAddUri ( EFI_DEVICE_PATH_PROTOCOL * DevicePath,
VOID * Uri,
OC_STRING_FORMAT StringFormat,
EFI_DEVICE_PATH_PROTOCOL ** UriDevicePath )

Definition at line 231 of file Uri.c.

◆ UriFileHasExtension()

BOOLEAN UriFileHasExtension ( IN CHAR8 * Uri,
IN CHAR8 * Ext )

Definition at line 222 of file Uri.c.

Variable Documentation

◆ mEndDevicePath

STATIC EFI_DEVICE_PATH_PROTOCOL mEndDevicePath
Initial value:
= {
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
{
END_DEVICE_PATH_LENGTH,
0
}
}

Definition at line 10 of file Uri.c.