summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Include
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-14 07:06:06 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-14 07:06:06 +0000
commit84f9a9ec8f84f837b3c0addf1f4681d8f8c71db1 (patch)
tree46fa29386c10c873f84276c75ba66a61efac35a1 /MdeModulePkg/Include
parent59ceeabe504f4c7814f9560c411690a1ffdc31b2 (diff)
downloadedk2-platforms-84f9a9ec8f84f837b3c0addf1f4681d8f8c71db1.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r--MdeModulePkg/Include/Library/HiiLib.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/MdeModulePkg/Include/Library/HiiLib.h b/MdeModulePkg/Include/Library/HiiLib.h
index 1c8a84ee21..3054a9b9c9 100644
--- a/MdeModulePkg/Include/Library/HiiLib.h
+++ b/MdeModulePkg/Include/Library/HiiLib.h
@@ -286,6 +286,51 @@ HiiConstructConfigHdr (
);
/**
+ 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.
If Guid is NULL, then ASSERT().