]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Application/UiApp/Ui.h
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Application / UiApp / Ui.h
1 /** @file
2 FrontPage routines to handle the callbacks and browser calls
3
4 Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef _BDS_MODULE_H_
10 #define _BDS_MODULE_H_
11
12 #include <IndustryStandard/SmBios.h>
13
14 #include <Guid/MdeModuleHii.h>
15 #include <Guid/StatusCodeDataTypeId.h>
16
17 #include <Protocol/Smbios.h>
18 #include <Protocol/HiiConfigAccess.h>
19
20 #include <Library/PrintLib.h>
21 #include <Library/DebugLib.h>
22 #include <Library/BaseMemoryLib.h>
23 #include <Library/UefiBootServicesTableLib.h>
24 #include <Library/UefiLib.h>
25 #include <Library/MemoryAllocationLib.h>
26 #include <Library/ReportStatusCodeLib.h>
27 #include <Library/UefiRuntimeServicesTableLib.h>
28 #include <Library/HiiLib.h>
29 #include <Library/DevicePathLib.h>
30 #include <Library/UefiHiiServicesLib.h>
31 #include <Library/UefiBootManagerLib.h>
32
33 #pragma pack(1)
34
35 ///
36 /// HII specific Vendor Device Path definition.
37 ///
38 typedef struct {
39 VENDOR_DEVICE_PATH VendorDevicePath;
40 EFI_DEVICE_PATH_PROTOCOL End;
41 } HII_VENDOR_DEVICE_PATH;
42
43 #pragma pack()
44
45 //
46 // The interface functions related to the Setup Browser Reset Reminder feature
47 //
48
49 /**
50 Record the info that a reset is required.
51 A module boolean variable is used to record whether a reset is required.
52
53 **/
54 VOID
55 EFIAPI
56 EnableResetRequired (
57 VOID
58 );
59
60 /**
61 Check whether platform policy enables the reset reminder feature. The default is enabled.
62
63 **/
64 BOOLEAN
65 EFIAPI
66 IsResetReminderFeatureEnable (
67 VOID
68 );
69
70 /**
71 Check if the user changed any option setting that needs a system reset to be effective.
72
73 **/
74 BOOLEAN
75 EFIAPI
76 IsResetRequired (
77 VOID
78 );
79
80 /**
81 Check whether a reset is needed, and finish the reset reminder feature.
82 If a reset is needed, pop up a menu to notice user, and finish the feature
83 according to the user selection.
84
85 **/
86 VOID
87 EFIAPI
88 SetupResetReminder (
89 VOID
90 );
91
92 #endif