/** @file
This library retrieves pointers to the UEFI HII Protocol instances in the
library's constructor. All of the UEFI HII related protocols are optional,
so the consumers of this library class must verify that the global variable
pointers are not NULL before use.
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#include <Uefi.h>
#include <Library/UefiHiiServicesLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h>
#include <Protocol/HiiString.h>
#include <Protocol/HiiImage.h>
#include <Protocol/HiiDatabase.h>
#include <Protocol/HiiConfigRouting.h>
///
/// Pointer to the UEFI HII Font Protocol
///
///
/// Pointer to the UEFI HII String Protocol
///
///
/// Pointer to the UEFI HII Image Protocol
///
///
/// Pointer to the UEFI HII Database Protocol
///
///
/// Pointer to the UEFI HII Config Rounting Protocol
///
/**
The constructor function retrieves pointers to the UEFI HII protocol instances
The constructor function retrieves pointers to the four UEFI HII protocols from the
handle database. These include the UEFI HII Font Protocol, the UEFI HII String
Protocol, the UEFI HII Image Protocol, the UEFI HII Database Protocol, and the
UEFI HII Config Routing Protocol. This function always return EFI_SUCCESS.
All of these protocols are optional if the platform does not support configuration
and the UEFI HII Image Protocol and the UEFI HII Font Protocol are optional if
the platform does not support a graphical console. As a result, the consumers
of this library much check the protocol pointers againt NULL before using them,
or use dependency expressions to guarantee that some of them are present before
assuming they are not NULL.
@param ImageHandle The firmware allocated handle for the EFI image.
@param SystemTable A pointer to the EFI System Table.
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
**/
)
{
//
// Retrieve the pointer to the UEFI HII String Protocol
//
//
// Retrieve the pointer to the UEFI HII Database Protocol
//
//
// Retrieve the pointer to the UEFI HII Config Routing Protocol
//
Status = gBS->LocateProtocol (&gEfiHiiConfigRoutingProtocolGuid, NULL, (VOID **) &gHiiConfigRouting);
//
// Retrieve the pointer to the optional UEFI HII Font Protocol
//
//
// Retrieve the pointer to the optional UEFI HII Image Protocol
//
return EFI_SUCCESS;
}