1. Update the implementation of HII ConfigRouting Protocol in HiiDataBase module to follow new ECRs.

1) ConfigRouting Protocol ExtractConfig interface must return the default values built in IFR that were not returned by ConfigAccess.ExtractConfig.
  2) The parameters of ConfigRouting Protocol interfaces are clarified to the specific configuration string syntax.
2. Implement the last two HiiLib interfaces: HiiSetToDefaults and HiiValidateSettings.
3. Update DriverSample driver to use these two APIs.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8313 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2009-05-14 07:06:06 +00:00
parent 59ceeabe50
commit 84f9a9ec8f
9 changed files with 3416 additions and 261 deletions

View File

@@ -285,6 +285,51 @@ HiiConstructConfigHdr (
IN EFI_HANDLE DriverHandle
);
/**
It has the many same logic to HiiValidateSetting API.
Reset the default value specified by DefaultId to the driver
configuration got by Request string.
NULL request string support depends on the ExtractConfig interface of
HiiConfigRouting protocol in UEFI specification.
@param EFI_STRING Request A null-terminated Unicode string in
<MultiConfigRequest> format. It can be NULL.
If it is NULL, all configuration for the
entirety of the current HII database will be reset.
@param UINT16 DefaultId Specifies the type of defaults to retrieve.
@retval TURE The default value is set successfully.
@retval FALSE The default value can't be found and set.
**/
BOOLEAN
EFIAPI
HiiSetToDefaults (
IN CONST EFI_STRING Request, OPTIONAL
IN UINT16 DefaultId
);
/**
Validate the current configuration by parsing HII form IFR opcode.
It can share the most logic with HiiSetToDefaults.
NULL request string support depends on the ExtractConfig interface of
HiiConfigRouting protocol in UEFI specification.
@param EFI_STRING Request A null-terminated Unicode string in
<MultiConfigRequest> format. It can be NULL.
If it is NULL, all current configuration for the
entirety of the current HII database will be validated.
@retval TURE Current configuration is valid.
@retval FALSE Current configuration is invalid.
**/
BOOLEAN
EFIAPI
HiiValidateSettings (
IN CONST EFI_STRING Request OPTIONAL
);
/**
Allocates and returns a Null-terminated Unicode <ConfigAltResp> string.