diff options
author | Sunny Wang <sunnywang@hpe.com> | 2015-10-26 04:49:08 +0000 |
---|---|---|
committer | niruiyu <niruiyu@Edk2> | 2015-10-26 04:49:08 +0000 |
commit | 5d3a9896f0cbb0c8c3d375d9f82a7e397be862a7 (patch) | |
tree | 87d6b1402ea01c814d86059cb60d8a2b502f441c /MdeModulePkg/Include | |
parent | 7beed8a3dac971d424adcb2d2139b87b0865950d (diff) | |
download | edk2-platforms-5d3a9896f0cbb0c8c3d375d9f82a7e397be862a7.tar.xz |
MdeModulePkg: Make the BmFindLoadOption function public
Make the BmFindLoadOption function public
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Sunny Wang <sunnywang@hpe.com>
Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hpe.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18662 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r-- | MdeModulePkg/Include/Library/UefiBootManagerLib.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/MdeModulePkg/Include/Library/UefiBootManagerLib.h b/MdeModulePkg/Include/Library/UefiBootManagerLib.h index 5538d90738..54a67130f3 100644 --- a/MdeModulePkg/Include/Library/UefiBootManagerLib.h +++ b/MdeModulePkg/Include/Library/UefiBootManagerLib.h @@ -2,6 +2,7 @@ Provide Boot Manager related library APIs.
Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -222,6 +223,27 @@ EfiBootManagerSortLoadOptionVariable ( IN SORT_COMPARE CompareFunction
);
+/**
+ Return the index of the load option in the load option array.
+
+ The function consider two load options are equal when the
+ OptionType, Attributes, Description, FilePath and OptionalData are equal.
+
+ @param Key Pointer to the load option to be found.
+ @param Array Pointer to the array of load options to be found.
+ @param Count Number of entries in the Array.
+
+ @retval -1 Key wasn't found in the Array.
+ @retval 0 ~ Count-1 The index of the Key in the Array.
+**/
+INTN
+EFIAPI
+EfiBootManagerFindLoadOption (
+ IN CONST EFI_BOOT_MANAGER_LOAD_OPTION *Key,
+ IN CONST EFI_BOOT_MANAGER_LOAD_OPTION *Array,
+ IN UINTN Count
+ );
+
//
// Boot Manager hot key library functions.
//
|