VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorkavsrf <kavsrf@gmail.com>2017-06-16 21:15:04 +0300
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-18 15:52:11 +0200
commited149d5104f35ab52edd7579f2c956382e7d617f (patch)
tree670192176e3a5281999a4089bf771731371c6b43 /Include
parent764556463ff132bd3a10d6c29e219bb10d523206 (diff)
downloadVeraCrypt-DCS-ed149d5104f35ab52edd7579f2c956382e7d617f.tar.gz
VeraCrypt-DCS-ed149d5104f35ab52edd7579f2c956382e7d617f.zip
BML flags added
Diffstat (limited to 'Include')
-rw-r--r--Include/Library/CommonLib.h10
-rw-r--r--Include/Protocol/DcsBmlProto.h6
2 files changed, 10 insertions, 6 deletions
diff --git a/Include/Library/CommonLib.h b/Include/Library/CommonLib.h
index cd7e068..9a15afd 100644
--- a/Include/Library/CommonLib.h
+++ b/Include/Library/CommonLib.h
@@ -29,10 +29,10 @@ https://opensource.org/licenses/LGPL-3.0
//////////////////////////////////////////////////////////////////////////
extern UINTN gCELine;
#define CE(ex) gCELine = __LINE__; if(EFI_ERROR(res = ex)) goto err
-
-#ifndef CSTATIC_ASSERT
-#define CSTATIC_ASSERT(b, name) typedef int StaticAssertFailed##name[b ? 1 : -1];
-#endif
+
+#ifndef CSTATIC_ASSERT
+#define CSTATIC_ASSERT(b, name) typedef int StaticAssertFailed##name[b ? 1 : -1];
+#endif
//////////////////////////////////////////////////////////////////////////
// defines
@@ -564,7 +564,7 @@ InitBml();
EFI_STATUS
BmlLock(
- IN BOOLEAN lock
+ IN UINT32 lock
);
diff --git a/Include/Protocol/DcsBmlProto.h b/Include/Protocol/DcsBmlProto.h
index 9fafa97..2a04d89 100644
--- a/Include/Protocol/DcsBmlProto.h
+++ b/Include/Protocol/DcsBmlProto.h
@@ -29,6 +29,10 @@ https://opensource.org/licenses/LGPL-3.0
typedef struct _EFI_DCSBML_PROTOCOL EFI_DCSBML_PROTOCOL;
+#define BML_LOCK_SETVARIABLE 0x1
+#define BML_UPDATE_BOOTORDER 0x2
+#define BML_SET_BOOTNEXT 0x4
+
//
// Lock boot menu
//
@@ -36,7 +40,7 @@ typedef
EFI_STATUS
(EFIAPI *EFI_BOOT_MENU_LOCK) (
IN EFI_DCSBML_PROTOCOL *This,
- IN BOOLEAN Lock
+ IN UINT32 LockFlags
);