Refine the load form sets process for BrowserCallback function.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming, Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15434 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -169,7 +169,6 @@ typedef struct {
|
||||
BROWSER_STORAGE *BrowserStorage;
|
||||
|
||||
CHAR16 *ConfigRequest; // <ConfigRequest> = <ConfigHdr> + <RequestElement>
|
||||
CHAR16 *ConfigElements;// Elements need to load initial data.
|
||||
UINTN ElementCount; // Number of <RequestElement> in the <ConfigRequest>
|
||||
UINTN SpareStrLen; // Spare length of ConfigRequest string buffer
|
||||
} FORMSET_STORAGE;
|
||||
@@ -1657,4 +1656,22 @@ DevicePathToHiiHandle (
|
||||
IN EFI_GUID *FormsetGuid
|
||||
);
|
||||
|
||||
/**
|
||||
Adjust the config request info, remove the request elements which already in AllConfigRequest string.
|
||||
|
||||
@param Storage Form set Storage.
|
||||
@param Request The input request string.
|
||||
@param RespString Whether the input is ConfigRequest or ConfigResp format.
|
||||
|
||||
@retval TRUE Has element not covered by current used elements, need to continue to call ExtractConfig
|
||||
@retval FALSE All elements covered by current used elements.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
ConfigRequestAdjust (
|
||||
IN BROWSER_STORAGE *Storage,
|
||||
IN CHAR16 *Request,
|
||||
IN BOOLEAN RespString
|
||||
);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user