]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrParserCommon.h
clean up the un-suitable ';' location when declaring the functions. The regular is...
[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 Create a new string in HII Package List.
44
45 @param String The String to be added
46 @param HiiHandle The package list in the HII database to insert the
47 specified string.
48
49 @return The output string.
50
51 **/
52 EFI_STRING_ID
53 NewString (
54 IN CHAR16 *String,
55 IN EFI_HII_HANDLE HiiHandle
56 );
57
58 #endif
59