]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/PlatformVarCleanupLib.h
MdeModulePkg: Fix MSFT C4255 warning
[mirror_edk2.git] / MdeModulePkg / Include / Library / PlatformVarCleanupLib.h
CommitLineData
c95d9ab8
SZ
1/** @file\r
2 The library class provides platform variable cleanup services.\r
3\r
4Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The 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 _PLATFORM_VARIABLE_CLEANUP_LIB_\r
16#define _PLATFORM_VARIABLE_CLEANUP_LIB_\r
17\r
18#include <Guid/VarErrorFlag.h>\r
19\r
20typedef enum {\r
21 VarCleanupAll,\r
22 VarCleanupManually,\r
23 VarCleanupMax,\r
24} VAR_CLEANUP_TYPE;\r
25\r
26/**\r
27 Get last boot variable error flag.\r
28\r
29 @return Last boot variable error flag.\r
30\r
31**/\r
32VAR_ERROR_FLAG\r
33EFIAPI\r
34GetLastBootVarErrorFlag (\r
f826516d 35 VOID\r
c95d9ab8
SZ
36 );\r
37\r
38/**\r
39 Platform variable cleanup.\r
40\r
41 @param[in] Flag Variable error flag.\r
42 @param[in] Type Variable cleanup type.\r
43 If it is VarCleanupManually, the interface must be called after console connected.\r
44\r
45 @retval EFI_SUCCESS No error or error processed.\r
46 @retval EFI_UNSUPPORTED The specified Flag or Type is not supported.\r
47 For example, system error may be not supported to process and Platform should have mechanism to reset system to manufacture mode.\r
48 Another, if system and user variables are wanted to be distinguished to process, the interface must be called after EndOfDxe.\r
49 @retval EFI_OUT_OF_RESOURCES Not enough resource to process the error.\r
50 @retval EFI_INVALID_PARAMETER The specified Flag or Type is an invalid value.\r
51 @retval Others Other failure occurs.\r
52\r
53**/\r
54EFI_STATUS\r
55EFIAPI\r
56PlatformVarCleanup (\r
57 IN VAR_ERROR_FLAG Flag,\r
58 IN VAR_CLEANUP_TYPE Type\r
59 );\r
60\r
61#endif\r
62\r