Home | History | Annotate | Download | only in GenericBdsLib
      1 /** @file
      2   String support
      3 
      4 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
      5 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 _STRING_H_
     16 #define _STRING_H_
     17 
     18 #include <Library/HiiLib.h>
     19 #include <Library/DebugLib.h>
     20 #include <Library/DevicePathLib.h>
     21 #include <Library/UefiLib.h>
     22 #include <Library/UefiBootServicesTableLib.h>
     23 
     24 extern EFI_HII_HANDLE gBdsLibStringPackHandle;
     25 
     26 //
     27 // This is the VFR compiler generated header file which defines the
     28 // string identifiers.
     29 //
     30 
     31 extern UINT8  GenericBdsLibStrings[];
     32 
     33 /**
     34   Get string by string id from HII Interface
     35 
     36 
     37   @param Id              String ID.
     38 
     39   @retval  CHAR16 *  String from ID.
     40   @retval  NULL      If error occurs.
     41 
     42 **/
     43 CHAR16 *
     44 BdsLibGetStringById (
     45   IN  EFI_STRING_ID   Id
     46   );
     47 
     48 #endif // _STRING_H_
     49