]>
Commit | Line | Data |
---|---|---|
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 |
dd51a993 | 13 | **/\r |
14 | \r | |
c892d846 | 15 | \r |
bad46384 | 16 | #include <PiDxe.h>\r |
c892d846 | 17 | \r |
bad46384 | 18 | #include <Library/HiiLib.h>\r |
19 | #include <Library/DebugLib.h>\r | |
20 | #include <Library/MemoryAllocationLib.h>\r | |
21 | \r | |
dd51a993 | 22 | /**\r |
23 | This function allocates pool for an EFI_HII_PACKAGES structure\r | |
24 | with enough space for the variable argument list of package pointers.\r | |
bad46384 | 25 | The allocated structure is initialized using NumberOfPackages, Guid,\r |
dd51a993 | 26 | and the variable length argument list of package pointers.\r |
27 | \r | |
28 | @param NumberOfPackages The number of HII packages to prepare.\r | |
29 | @param Guid Package GUID.\r | |
30 | \r | |
31 | @return The allocated and initialized packages.\r | |
32 | \r | |
33 | **/\r | |
34 | EFI_HII_PACKAGE_LIST_HEADER *\r | |
35 | EFIAPI\r | |
36 | PreparePackages (\r | |
37 | IN CONST UINTN NumberOfPackages,\r | |
38 | IN CONST EFI_GUID *Guid OPTIONAL,\r | |
39 | ...\r | |
40 | )\r | |
41 | {\r | |
42 | //\r | |
43 | // BugBug: Need more detail on UEFI spec.\r | |
bad46384 | 44 | //\r |
dd51a993 | 45 | ASSERT (FALSE);\r |
bad46384 | 46 | return NULL;\r |
dd51a993 | 47 | }\r |