]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrParserCommon.h
1) Add in IfrParser so that the FrameworkHii->GetDefaultImage can scan UEFI IFR opcod...
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / FrameworkHiiToUefiHiiThunk / UefiIfrParserCommon.h
1 /** @file
2 Common Function and Macro defintions used for both for IFR Parser and Expression evaluation.
3 This header file should only be included by UefiIfrParserExpression.c and UefiIfrParser.c
4
5 Copyright (c) 2008, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef _HII_THUNK_UEFI_IFR_PARSER_COMMON_INTERNAL_
17 #define _HII_THUNK_UEFI_IFR_PARSER_COMMON_INTERNAL_
18
19 #include <Library/BaseLib.h>
20 #include <Library/BaseMemoryLib.h>
21 #include <Library/PrintLib.h>
22 #include <Protocol/UnicodeCollation.h>
23
24 extern CHAR16 *gEmptyString;
25
26 /**
27 Get the string based on the StringId and HII Package List Handle.
28
29 @param Token The String's ID.
30 @param HiiHandle The package list in the HII database to search for
31 the specified string.
32
33 @return The output string.
34
35 **/
36 CHAR16 *
37 GetToken (
38 IN EFI_STRING_ID Token,
39 IN EFI_HII_HANDLE HiiHandle
40 )
41 ;
42
43 /**
44 Create a new string in HII Package List.
45
46 @param String The String to be added
47 @param HiiHandle The package list in the HII database to insert the
48 specified string.
49
50 @return The output string.
51
52 **/
53 EFI_STRING_ID
54 NewString (
55 IN CHAR16 *String,
56 IN EFI_HII_HANDLE HiiHandle
57 )
58 ;
59
60 #endif
61