]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/HiiLib/HiiLib.c
Add MonotonicCounter driver, which produces MonotonicCounter arch protocols
[mirror_edk2.git] / MdePkg / Library / HiiLib / HiiLib.c
CommitLineData
dd51a993 1/** @file\r
2 HII Library implementation that uses DXE protocols and services.\r
3\r
4 Copyright (c) 2006, Intel Corporation<BR>\r
bad46384 5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
dd51a993 9\r
bad46384 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
dd51a993 12\r
13 Module Name: HiiLib.c\r
14\r
15**/\r
16\r
bad46384 17//\r
18// The package level header files this module uses\r
19//\r
20#include <PiDxe.h>\r
21//\r
22// The Library classes this module consumes\r
23//\r
24#include <Library/HiiLib.h>\r
25#include <Library/DebugLib.h>\r
26#include <Library/MemoryAllocationLib.h>\r
27\r
dd51a993 28/**\r
29 This function allocates pool for an EFI_HII_PACKAGES structure\r
30 with enough space for the variable argument list of package pointers.\r
bad46384 31 The allocated structure is initialized using NumberOfPackages, Guid,\r
dd51a993 32 and the variable length argument list of package pointers.\r
33\r
34 @param NumberOfPackages The number of HII packages to prepare.\r
35 @param Guid Package GUID.\r
36\r
37 @return The allocated and initialized packages.\r
38\r
39**/\r
40EFI_HII_PACKAGE_LIST_HEADER *\r
41EFIAPI\r
42PreparePackages (\r
43 IN CONST UINTN NumberOfPackages,\r
44 IN CONST EFI_GUID *Guid OPTIONAL,\r
45 ...\r
46 )\r
47{\r
48 //\r
49 // BugBug: Need more detail on UEFI spec.\r
bad46384 50 //\r
dd51a993 51 ASSERT (FALSE);\r
bad46384 52 return NULL;\r
dd51a993 53}\r