diff options
author | Dandan Bi <dandan.bi@intel.com> | 2015-10-27 10:19:29 +0000 |
---|---|---|
committer | dandanbi <dandanbi@Edk2> | 2015-10-27 10:19:29 +0000 |
commit | 8a4582838b42e92d6d6429a7289b04e50ad084de (patch) | |
tree | d6f62702530048a68c0ce103d9f5cca926a1be4b /MdeModulePkg/Include | |
parent | 8b7a63e7e23f19b5947f8d6eedd22872d352dc54 (diff) | |
download | edk2-8a4582838b42e92d6d6429a7289b04e50ad084de.zip edk2-8a4582838b42e92d6d6429a7289b04e50ad084de.tar.gz edk2-8a4582838b42e92d6d6429a7289b04e50ad084de.tar.bz2 |
MdeModulePkg:Add new API HiiGetFormSetFromHiiHandle into UefiHiiLib
This function is mainly through the Hii handle to get the formset opcode.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-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@18684 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r-- | MdeModulePkg/Include/Library/HiiLib.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/MdeModulePkg/Include/Library/HiiLib.h b/MdeModulePkg/Include/Library/HiiLib.h index 0e323df..4ad4cf1 100644 --- a/MdeModulePkg/Include/Library/HiiLib.h +++ b/MdeModulePkg/Include/Library/HiiLib.h @@ -225,6 +225,29 @@ HiiGetHiiHandles ( ;
/**
+ This function allows a caller to extract the form set opcode form the Hii Handle.
+ The returned buffer is allocated using AllocatePool().The caller is responsible
+ for freeing the allocated buffer using FreePool().
+
+ @param Handle The HII handle.
+ @param Buffer On return, opints to a pointer which point to the buffer that contain the formset opcode.
+ @param BufferSize On return, points to the length of the buffer.
+
+ @retval EFI_OUT_OF_RESOURCES No enough memory resource is allocated.
+ @retval EFI_NOT_FOUND Can't find the package data for the input Handle.
+ @retval EFI_INVALID_PARAMETER The input parameters are not correct.
+ @retval EFI_SUCCESS Get the formset opcode from the hii handle sucessfully.
+
+**/
+EFI_STATUS
+EFIAPI
+HiiGetFormSetFromHiiHandle(
+ IN EFI_HII_HANDLE Handle,
+ OUT EFI_IFR_FORM_SET **Buffer,
+ OUT UINTN *BufferSize
+ );
+
+/**
Retrieves a pointer to a Null-terminated ASCII string containing the list
of languages that an HII handle in the HII Database supports. The returned
string is allocated using AllocatePool(). The caller is responsible for freeing
|