Retire original HII APIs: IfrLibExtractDefault and ConstructConfigAltResp, which are replaced by HiiSetToDefaults API.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8319 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -328,55 +328,6 @@ HiiValidateSettings (
|
||||
IN CONST EFI_STRING Request OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
Allocates and returns a Null-terminated Unicode <ConfigAltResp> string.
|
||||
|
||||
If Guid is NULL, then ASSERT().
|
||||
If Name is NULL, then ASSERT().
|
||||
If BlockNameArray is NULL, then ASSERT().
|
||||
|
||||
@param[in] Guid GUID of the buffer storage.
|
||||
@param[in] Name Name of the buffer storage.
|
||||
@param[in] DriverHandle The DriverHandle that support a Device Path
|
||||
Protocol.
|
||||
@param[in] BufferStorage Content of the buffer storage.
|
||||
@param[in] BufferStorageSize Length in bytes of the buffer storage.
|
||||
@param[in] BlockNameArray Array generated by VFR compiler. This array
|
||||
contains a UINT32 value that is the length
|
||||
of BlockNameArray in bytes, followed by pairs
|
||||
of 16-bit values that are the offset and length
|
||||
values used to contruct a <ConfigRequest> string.
|
||||
@param[in] ... A variable argument list that contains pairs of 16-bit
|
||||
ALTCFG identifiers and pointers to DefaultValueArrays.
|
||||
The variable argument list is terminated by a NULL
|
||||
DefaultValueArray pointer. A DefaultValueArray
|
||||
contains a UINT32 value that is the length, in bytes,
|
||||
of the DefaultValueArray. The UINT32 length value
|
||||
is followed by a series of records that contain
|
||||
a 16-bit WIDTH value followed by a byte array with
|
||||
WIDTH entries. The records must be parsed from
|
||||
beginning to end until the UINT32 length limit
|
||||
is reached.
|
||||
|
||||
@retval NULL There are not enough resources to process the request.
|
||||
@retval NULL A <ConfigResp> could not be retrieved from the Config
|
||||
Routing Protocol.
|
||||
@retval Other A pointer to the Null-terminate Unicode <ConfigAltResp>
|
||||
string.
|
||||
|
||||
**/
|
||||
EFI_STRING
|
||||
EFIAPI
|
||||
HiiConstructConfigAltResp (
|
||||
IN CONST EFI_GUID *Guid,
|
||||
IN CONST CHAR16 *Name,
|
||||
IN EFI_HANDLE DriverHandle,
|
||||
IN CONST VOID *BufferStorage,
|
||||
IN UINTN BufferStorageSize,
|
||||
IN CONST VOID *BlockNameArray,
|
||||
...
|
||||
);
|
||||
|
||||
/**
|
||||
Determines if the routing data specified by GUID and NAME match a <ConfigHdr>.
|
||||
|
||||
@@ -990,32 +941,4 @@ HiiUpdateForm (
|
||||
IN VOID *EndOpcodeHandle OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
Configure the buffer accrording to ConfigBody strings in the format of
|
||||
<Length:4 bytes>, <Offset: 2 bytes>, <Width:2 bytes>, <Data:n bytes>.
|
||||
This ConfigBody strings is generated by EDKII UEFI VfrCompiler for the default
|
||||
values in a Form Set. The name of the ConfigBody strings is VfrMyIfrNVDataDefault0000
|
||||
constructed following this rule:
|
||||
"Vfr" + varstore.name + "Default" + defaultstore.attributes.
|
||||
Check the generated C file in Output for details.
|
||||
|
||||
@param Buffer the start address of buffer.
|
||||
@param BufferSize the size of buffer.
|
||||
@param Number the number of the ConfigBody strings.
|
||||
@param ... the ConfigBody strings
|
||||
|
||||
@retval EFI_BUFFER_TOO_SMALL the BufferSize is too small to operate.
|
||||
@retval EFI_INVALID_PARAMETER Buffer is NULL or BufferSize is 0.
|
||||
@retval EFI_SUCCESS Operation successful.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
HiiIfrLibExtractDefault(
|
||||
IN VOID *Buffer,
|
||||
IN UINTN *BufferSize,
|
||||
UINTN Number,
|
||||
...
|
||||
);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user