]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/HiiDatabaseDxe/R8Lib.h
Make HiiDatabase module not depend on HiiLib; otherwise it will inherit HII_DATABASE_...
[mirror_edk2.git] / MdeModulePkg / Universal / HiiDatabaseDxe / R8Lib.h
index 7c1c9f051ed9c2f3fa842f4183f726f3b198e3e3..e971dc264b275114898204dd7b47923089f4bca3 100644 (file)
@@ -17,7 +17,6 @@ Implement a utility function named R8_EfiLibCompareLanguage.
 #ifndef __R8_LIB_H__\r
 #define __R8_LIB_H__\r
 \r
-\r
 /**\r
   Compare whether two names of languages are identical.\r
 \r
@@ -35,6 +34,26 @@ R8_EfiLibCompareLanguage (
   )\r
 ;\r
 \r
+/**\r
+  Determine what is the current language setting. The space reserved for Lang\r
+  must be at least RFC_3066_ENTRY_SIZE bytes;\r
+\r
+  If Lang is NULL, then ASSERT.\r
+\r
+  @param  Lang                   Pointer of system language. Lang will always be filled with \r
+                                 a valid RFC 3066 language string. If "PlatformLang" is not\r
+                                 set in the system, the default language specifed by PcdUefiVariableDefaultPlatformLang\r
+                                 is returned.\r
+\r
+  @return  EFI_SUCCESS     If the EFI Variable with "PlatformLang" is set and return in Lang.\r
+  @return  EFI_NOT_FOUND If the EFI Variable with "PlatformLang" is not set, but a valid default language is return in Lang.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+GetCurrentLanguage (\r
+  OUT     CHAR8               *Lang\r
+  );\r
 \r
 #endif\r
 \r