]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/UefiHiiLib/InternalHiiLib.h
c3fd834ec5be1e9f7ac3d564cc7ce50861b224ab
[mirror_edk2.git] / MdeModulePkg / Library / UefiHiiLib / InternalHiiLib.h
1 /** @file
2 Internal include file for the HII Library instance.
3
4 Copyright (c) 2007, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef __INTERNAL_HII_LIB_H__
16 #define __INTERNAL_HII_LIB_H__
17
18 #include <Uefi.h>
19
20 #include <Protocol/HiiDatabase.h>
21 #include <Protocol/HiiString.h>
22 #include <Protocol/DevicePath.h>
23 #include <Protocol/FormBrowser2.h>
24
25 #include <Guid/GlobalVariable.h>
26
27 #include <Library/BaseLib.h>
28 #include <Library/BaseMemoryLib.h>
29 #include <Library/HiiLib.h>
30 #include <Library/DebugLib.h>
31 #include <Library/MemoryAllocationLib.h>
32 #include <Library/UefiBootServicesTableLib.h>
33 #include <Library/DevicePathLib.h>
34 #include <Library/UefiHiiServicesLib.h>
35 #include <Library/UefiLib.h>
36 #include <Library/PrintLib.h>
37 #include <Library/PcdLib.h>
38 #include <Library/UefiRuntimeServicesTableLib.h>
39
40 #define HII_LIB_DEFAULT_STRING_SIZE 0x200
41
42 ///
43 /// The size of a 3 character ISO639 language code.
44 ///
45 #define ISO_639_2_ENTRY_SIZE 3
46
47 extern CONST EFI_HII_DATABASE_PROTOCOL *mHiiDatabaseProt;
48 extern CONST EFI_HII_STRING_PROTOCOL *mHiiStringProt;
49
50 /**
51 Extract Hii package list GUID for given HII handle.
52
53 If HiiHandle could not be found in the HII database, then ASSERT.
54 If Guid is NULL, then ASSERT.
55
56 @param Handle Hii handle
57 @param Guid Package list GUID
58
59 @retval EFI_SUCCESS Successfully extract GUID from Hii database.
60
61 **/
62 EFI_STATUS
63 EFIAPI
64 InternalHiiExtractGuidFromHiiHandle (
65 IN EFI_HII_HANDLE Handle,
66 OUT EFI_GUID *Guid
67 )
68 ;
69
70 #endif