]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/IfrSupportLib/UefiIfrCommon.c
Make the module GCC clean.
[mirror_edk2.git] / MdePkg / Library / IfrSupportLib / UefiIfrCommon.c
1 /** @file
2
3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 UefiIfrCommon.c
15
16 Abstract:
17
18 Common Library Routines to assist handle HII elements.
19
20
21 **/
22
23 #include "UefiIfrLibraryInternal.h"
24
25 EFI_HII_DATABASE_PROTOCOL *gIfrLibHiiDatabase;
26 EFI_HII_STRING_PROTOCOL *gIfrLibHiiString;
27
28
29 EFI_STATUS
30 EFIAPI
31 IfrSupportLibConstructor (
32 IN EFI_HANDLE ImageHandle,
33 IN EFI_SYSTEM_TABLE *SystemTable
34 )
35 {
36 EFI_STATUS Status;
37
38 Status = gBS->LocateProtocol (&gEfiHiiDatabaseProtocolGuid, NULL, (VOID **) &gIfrLibHiiDatabase);
39 ASSERT_EFI_ERROR (Status);
40
41 Status = gBS->LocateProtocol (&gEfiHiiStringProtocolGuid, NULL, (VOID **) &gIfrLibHiiString);
42 ASSERT_EFI_ERROR (Status);
43
44 return EFI_SUCCESS;
45 }
46
47