mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-26 02:58:39 +02:00
MdePkg/UefiImageLib: Add API for the image format ID
This commit is contained in:
parent
b9a2fa8473
commit
dcdb8d3425
@ -125,6 +125,18 @@ UefiImageInitializeContext (
|
|||||||
IN UINT32 FileSize
|
IN UINT32 FileSize
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Retrieves the UefiImageLib Image format identifier.
|
||||||
|
|
||||||
|
@param[out] Context The context describing the Image.
|
||||||
|
|
||||||
|
@returns The UefiImageLib format identifier.
|
||||||
|
**/
|
||||||
|
UINT8
|
||||||
|
UefiImageGetFormat (
|
||||||
|
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Hashes the Image using the format's default hashing algorithm.
|
Hashes the Image using the format's default hashing algorithm.
|
||||||
|
|
||||||
|
@ -46,6 +46,14 @@ UefiImageInitializeContextPostHash (
|
|||||||
return RETURN_SUCCESS;
|
return RETURN_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UINT8
|
||||||
|
UefiImageGetFormat (
|
||||||
|
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return UefiImageFormatPe;
|
||||||
|
}
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
UefiImageHashImageDefault (
|
UefiImageHashImageDefault (
|
||||||
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context,
|
IN OUT UEFI_IMAGE_LOADER_IMAGE_CONTEXT *Context,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user