]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.h
MdeModulePkg/ResetUtilityLib: Fix GCC build failure
[mirror_edk2.git] / MdeModulePkg / Library / BootMaintenanceManagerUiLib / BootMaintenanceManagerCustomizedUiSupport.h
CommitLineData
a85be3ae
ED
1/** @file\r
2 This library class defines a set of interfaces to be used by customize Ui module\r
3\r
4Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials are licensed and made available under\r
6the terms and conditions of the BSD License that accompanies this distribution.\r
7The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php.\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __BOOT_MAINTENANCE_MANAGER_UI_LIB_H__\r
16#define __BOOT_MAINTENANCE_MANAGER_UI_LIB_H__\r
17\r
18/**\r
19 Create Time Out Menu in the page.\r
20\r
21 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
22 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
23\r
24**/\r
25VOID\r
26BmmCreateTimeOutMenu (\r
27 IN EFI_HII_HANDLE HiiHandle,\r
28 IN VOID *StartOpCodeHandle\r
29 );\r
30\r
31/**\r
32 Create the dynamic item to allow user to set the "BootNext" vaule.\r
33\r
8caa3caa
DB
34 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
35 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
a85be3ae
ED
36\r
37**/\r
38VOID\r
39BmmCreateBootNextMenu(\r
40 IN EFI_HII_HANDLE HiiHandle,\r
41 IN VOID *StartOpCodeHandle\r
42 );\r
43\r
44/**\r
45 Create Boot Option menu in the page.\r
46\r
47 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
48 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
49\r
50**/\r
51VOID\r
52BmmCreateBootOptionMenu (\r
53 IN EFI_HII_HANDLE HiiHandle,\r
54 IN VOID *StartOpCodeHandle\r
55 );\r
56\r
57/**\r
58 Create Driver Option menu in the page.\r
59\r
60 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
61 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
62\r
63**/\r
64VOID\r
65BmmCreateDriverOptionMenu (\r
66 IN EFI_HII_HANDLE HiiHandle,\r
67 IN VOID *StartOpCodeHandle\r
68 );\r
69\r
70/**\r
71 Create Com Option menu in the page.\r
72\r
73 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
74 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
75\r
76**/\r
77VOID\r
78BmmCreateComOptionMenu (\r
79 IN EFI_HII_HANDLE HiiHandle,\r
80 IN VOID *StartOpCodeHandle\r
81 );\r
82\r
83/**\r
84 Create Com Option menu in the page.\r
85\r
86 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
87 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
88\r
89**/\r
90VOID\r
91BmmCreateBootFromFileMenu (\r
92 IN EFI_HII_HANDLE HiiHandle,\r
93 IN VOID *StartOpCodeHandle\r
94 );\r
95\r
96/**\r
97 Create empty line menu in the front page.\r
98\r
99 @param HiiHandle The hii handle for the Uiapp driver.\r
100 @param StartOpCodeHandle The opcode handle to save the new opcode.\r
101\r
102**/\r
103VOID\r
104BmmCreateEmptyLine (\r
105 IN EFI_HII_HANDLE HiiHandle,\r
106 IN VOID *StartOpCodeHandle\r
107 );\r
108\r
109/**\r
110 Rename the driver name if necessary.\r
111\r
112 @param DriverName Input the driver name.\r
113 @param NewDriverName Return the new driver name.\r
114 @param EmptyLineAfter Whether need to insert empty line.\r
115\r
116 @retval New driver name if compared, else NULL.\r
117\r
118**/\r
119typedef\r
120EFI_STATUS\r
121(EFIAPI *DRIVER_SPECIAL_HANDLER)(\r
122 IN CHAR16 *DriverName,\r
123 OUT CHAR16 **NewName,\r
124 OUT BOOLEAN *EmptyLineAfter\r
125);\r
126\r
127/**\r
128 Search the drivers in the system which need to show in the front page\r
129 and insert the menu to the front page.\r
130\r
131 @param HiiHandle The hii handle for the Uiapp driver.\r
132 @param ClassGuid The class guid for the driver which is the target.\r
8caa3caa 133 @param SpecialHandlerFn The pointer to the specail handler function, if any.\r
a85be3ae 134 @param StartOpCodeHandle The opcode handle to save the new opcode.\r
a85be3ae
ED
135\r
136 @retval EFI_SUCCESS Search the driver success\r
137\r
138**/\r
139EFI_STATUS\r
140BmmListThirdPartyDrivers (\r
141 IN EFI_HII_HANDLE HiiHandle,\r
142 IN EFI_GUID *ClassGuid,\r
143 IN DRIVER_SPECIAL_HANDLER SpecialHandlerFn,\r
144 IN VOID *StartOpCodeHandle\r
145 );\r
146\r
147#endif\r