]>
Commit | Line | Data |
---|---|---|
26a76fbc | 1 | /** @file\r |
a3318eaf | 2 | This file is for functins related to assign and free Framework HII handle number.\r |
d4775f2a | 3 | \r |
584d5652 HT |
4 | Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r |
5 | This program and the accompanying materials\r | |
d4775f2a | 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 | |
9 | \r | |
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 | |
12 | \r | |
13 | **/\r | |
14 | \r | |
26a76fbc LG |
15 | #ifndef _HII_HANDLE_H_\r |
16 | #define _HII_HANDLE_H_\r | |
d4775f2a | 17 | \r |
18 | #include <FrameworkDxe.h>\r | |
19 | #include <Protocol/FrameworkHii.h>\r | |
20 | #include <Library/DebugLib.h>\r | |
21 | \r | |
26a76fbc LG |
22 | /**\r |
23 | \r | |
24 | Initialize the Framework Hii Handle database.\r | |
25 | \r | |
26 | **/\r | |
d4775f2a | 27 | VOID\r |
28 | InitHiiHandleDatabase (\r | |
29 | VOID\r | |
e00e1d46 | 30 | );\r |
d4775f2a | 31 | \r |
26a76fbc LG |
32 | /**\r |
33 | Allocate a new Framework HII handle. \r | |
34 | \r | |
35 | @param Handle Returns the new Framework HII Handle assigned.\r | |
36 | \r | |
37 | @retval EFI_SUCCESS A new Framework HII Handle is assigned.\r | |
38 | @retval EFI_OUT_OF_RESOURCE The Framework HII Handle database is depleted.\r | |
39 | \r | |
40 | **/\r | |
d4775f2a | 41 | EFI_STATUS\r |
42 | AllocateHiiHandle (\r | |
26a76fbc LG |
43 | OUT FRAMEWORK_EFI_HII_HANDLE *Handle\r |
44 | );\r | |
d4775f2a | 45 | \r |
46 | \r | |
26a76fbc LG |
47 | /**\r |
48 | Free Framework HII handle. \r | |
49 | \r | |
50 | @param Handle The Framework HII Handle to be freed.\r | |
51 | \r | |
52 | **/\r | |
d4775f2a | 53 | VOID\r |
54 | FreeHiiHandle (\r | |
26a76fbc LG |
55 | IN FRAMEWORK_EFI_HII_HANDLE Handle\r |
56 | );\r | |
d4775f2a | 57 | \r |
58 | \r | |
59 | #endif\r | |
60 | \r |