diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-04-21 13:28:31 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-05-04 08:47:34 +0800 |
commit | 4ed2440d44152939adc88fcc07b8f5240db596a5 (patch) | |
tree | 978e3e0ec04875c013af346e55dc7266c807fbec /MdeModulePkg/Include | |
parent | d0a23f9f86dc39065429dc954adbc56b099b801e (diff) | |
download | edk2-4ed2440d44152939adc88fcc07b8f5240db596a5.tar.gz edk2-4ed2440d44152939adc88fcc07b8f5240db596a5.tar.bz2 edk2-4ed2440d44152939adc88fcc07b8f5240db596a5.zip |
MdeModulePkg/UefiBootManagerLib: Expose *GetLoadOptionBuffer() API
Expose EfiBootManagerGetLoadOptionBuffer() API.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r-- | MdeModulePkg/Include/Library/UefiBootManagerLib.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/MdeModulePkg/Include/Library/UefiBootManagerLib.h b/MdeModulePkg/Include/Library/UefiBootManagerLib.h index 91926fc638..0fdb23dcbd 100644 --- a/MdeModulePkg/Include/Library/UefiBootManagerLib.h +++ b/MdeModulePkg/Include/Library/UefiBootManagerLib.h @@ -1,7 +1,7 @@ /** @file
Provide Boot Manager related library APIs.
-Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015-2016 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
@@ -431,6 +431,27 @@ EfiBootManagerGetBootManagerMenu ( EFI_BOOT_MANAGER_LOAD_OPTION *BootOption
);
+
+/**
+ Get the load option by its device path.
+
+ @param FilePath The device path pointing to a load option.
+ It could be a short-form device path.
+ @param FullPath Return the full device path of the load option after
+ short-form device path expanding.
+ Caller is responsible to free it.
+ @param FileSize Return the load option size.
+
+ @return The load option buffer. Caller is responsible to free the memory.
+**/
+VOID *
+EFIAPI
+EfiBootManagerGetLoadOptionBuffer (
+ IN EFI_DEVICE_PATH_PROTOCOL *FilePath,
+ OUT EFI_DEVICE_PATH_PROTOCOL **FullPath,
+ OUT UINTN *FileSize
+ );
+
/**
The function enumerates all the legacy boot options, creates them and
registers them in the BootOrder variable.
|