mirror of https://github.com/acidanthera/audk.git
HiiLib exports HiiCreateRawOpCode API
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8216 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4bca47e175
commit
278663ab10
|
@ -476,6 +476,28 @@ HiiFreeOpCodeHandle (
|
||||||
VOID *OpCodeHandle
|
VOID *OpCodeHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Append raw opcodes to an OpCodeHandle.
|
||||||
|
|
||||||
|
If OpCodeHandle is NULL, then ASSERT().
|
||||||
|
If RawBuffer is NULL, then ASSERT();
|
||||||
|
|
||||||
|
@param[in] OpCodeHandle Handle to the buffer of opcodes.
|
||||||
|
@param[in] RawBuffer Buffer of opcodes to append.
|
||||||
|
@param[in] RawBufferSize The size, in bytes, of Buffer.
|
||||||
|
|
||||||
|
@retval NULL There is not enough space left in Buffer to add the opcode.
|
||||||
|
@retval Other A pointer to the appended opcodes.
|
||||||
|
|
||||||
|
**/
|
||||||
|
UINT8 *
|
||||||
|
EFIAPI
|
||||||
|
HiiCreateRawOpCodes (
|
||||||
|
IN VOID *OpCodeHandle,
|
||||||
|
IN UINT8 *RawBuffer,
|
||||||
|
IN UINTN RawBufferSize
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create EFI_IFR_END_OP opcode.
|
Create EFI_IFR_END_OP opcode.
|
||||||
|
|
||||||
|
|
|
@ -1446,7 +1446,7 @@ InternalHiiCreateOpCode (
|
||||||
**/
|
**/
|
||||||
UINT8 *
|
UINT8 *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalHiiCreateRawOpCodes (
|
HiiCreateRawOpCodes (
|
||||||
IN VOID *OpCodeHandle,
|
IN VOID *OpCodeHandle,
|
||||||
IN UINT8 *RawBuffer,
|
IN UINT8 *RawBuffer,
|
||||||
IN UINTN RawBufferSize
|
IN UINTN RawBufferSize
|
||||||
|
@ -1485,7 +1485,7 @@ InternalHiiAppendOpCodes (
|
||||||
ASSERT (RawOpCodeHandle != NULL);
|
ASSERT (RawOpCodeHandle != NULL);
|
||||||
|
|
||||||
RawOpCodeBuffer = (HII_LIB_OPCODE_BUFFER *)RawOpCodeHandle;
|
RawOpCodeBuffer = (HII_LIB_OPCODE_BUFFER *)RawOpCodeHandle;
|
||||||
return InternalHiiCreateRawOpCodes (OpCodeHandle, RawOpCodeBuffer->Buffer, RawOpCodeBuffer->Position);
|
return HiiCreateRawOpCodes (OpCodeHandle, RawOpCodeBuffer->Buffer, RawOpCodeBuffer->Position);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue