\r
If HiiHandle is NULL, then ASSERT.\r
\r
- @param NumberOfPackages The number of HII packages to register.\r
- @param GuidId Package List GUID ID.\r
- @param EFI_HANDLE Optional. If not NULL, the DriverHandle on which an instance of DEVICE_PATH_PROTOCOL is installed.\r
- This DriverHandle uniquely defines the device that the added packages are associated with.\r
- @param HiiHandle On output, the HiiHandle is update with the handle which can be used to retrieve the Package \r
- List later. If the functions failed to add the package to the default HII database, this value will\r
- be set to NULL.\r
- @param ... The variable argument list describing all HII Package.\r
+ @param NumberOfPackages The number of HII packages to register.\r
+ @param GuidId Package List GUID ID.\r
+ @param DriverHandle Optional. If not NULL, the DriverHandle on which an instance of DEVICE_PATH_PROTOCOL is installed.\r
+ This DriverHandle uniquely defines the device that the added packages are associated with.\r
+ @param HiiHandle On output, the HiiHandle is update with the handle which can be used to retrieve the Package \r
+ List later. If the functions failed to add the package to the default HII database, this value will\r
+ be set to NULL.\r
+ @param ... The variable argument list describing all HII Package.\r
\r
@return EFI_SUCCESS If the packages are successfully added to the default HII database.\r
@return EFI_OUT_OF_RESOURCE Not enough resource to complete the operation.\r
@param HiiHandle The handle that was previously registered to the data base that is requested for removal.\r
List later.\r
\r
- @return VOID\r
-\r
**/\r
VOID\r
EFIAPI\r
@retval EFI_NOT_FOUND The string specified by StringId is not available.\r
@retval EFI_BUFFER_TOO_SMALL The buffer specified by StringLength is too small\r
to hold the string.\r
- @retval EFI_INVALID_PARAMETER The String or StringSize was NULL.\r
\r
**/\r
-\r
EFI_STATUS\r
EFIAPI\r
HiiLibGetString (\r
If HandleBufferLength is NULL, then ASSERT.\r
If HiiHandleBuffer is NULL, then ASSERT.\r
\r
- @param HiiDatabase A pointer to the EFI_HII_DATABASE_PROTOCOL\r
- instance.\r
@param HandleBufferLength On input, a pointer to the length of the handle\r
buffer. On output, the length of the handle buffer\r
that is required for the handles found.\r
If HiiHandle could not be found in the default HII database, then ASSERT.\r
If Guid is NULL, then ASSERT.\r
\r
- @param HiiHandle Hii handle\r
- @param Guid Package list GUID\r
+ @param Handle Hii handle\r
+ @param Guid Package list GUID\r
\r
@retval EFI_SUCCESS Successfully extract GUID from Hii database.\r
\r
If not enough resource to complete the operation, then ASSERT.\r
\r
@param HiiHandle The HII package list handle.\r
-\r
+ @param FirstLanguage Pointer to language name buffer.\r
+ \r
@return The supported languages.\r
\r
**/\r
/**\r
Convert language code from RFC3066 to ISO639-2.\r
\r
+ LanguageRfc3066 contain a single RFC 3066 code such as\r
+ "en-US" or "fr-FR".\r
+\r
+ The LanguageRfc3066 must be a buffer large enough\r
+ for ISO_639_2_ENTRY_SIZE characters.\r
+\r
If LanguageRfc3066 is NULL, then ASSERT.\r
If LanguageIso639 is NULL, then ASSERT.\r
\r
EFI_STATUS\r
EFIAPI\r
ConvertRfc3066LanguageToIso639Language (\r
- CHAR8 *LanguageRfc3066,\r
- CHAR8 *LanguageIso639\r
+ IN CHAR8 *LanguageRfc3066,\r
+ OUT CHAR8 *LanguageIso639\r
+ )\r
+;\r
+\r
+/**\r
+ Convert language code from ISO639-2 to RFC3066.\r
+\r
+ LanguageIso639 contain a single ISO639-2 code such as\r
+ "eng" or "fra".\r
+\r
+ The LanguageRfc3066 must be a buffer large enough\r
+ for RFC_3066_ENTRY_SIZE characters.\r
+\r
+ If LanguageIso639 is NULL, then ASSERT.\r
+ If LanguageRfc3066 is NULL, then ASSERT.\r
+\r
+ @param LanguageIso639 ISO639-2 language code.\r
+ @param LanguageRfc3066 RFC3066 language code.\r
+\r
+ @retval EFI_SUCCESS Language code converted.\r
+ @retval EFI_NOT_FOUND Language code not found.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+ConvertIso639LanguageToRfc3066Language (\r
+ IN CONST CHAR8 *LanguageIso639,\r
+ OUT CHAR8 *LanguageRfc3066\r
)\r
;\r
\r