VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Include/Library/FileExplorerLib.h

Last change on this file was 99404, checked in by vboxsync, 22 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/** @file
2
3 This library class defines a set of interfaces for how to do file explorer.
4
5Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
6SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#ifndef __FILE_EXPLORER_LIB_H__
11#define __FILE_EXPLORER_LIB_H__
12
13#include <Protocol/FileExplorer.h>
14
15/**
16 Choose a file in the specified directory.
17
18 If user input NULL for the RootDirectory, will choose file in the system.
19
20 If user input *File != NULL, function will return the allocate device path
21 info for the choosed file, caller has to free the memory after use it.
22
23 @param RootDirectory Pointer to the root directory.
24 @param FileType The file type need to choose.
25 @param ChooseHandler Function pointer to the extra task need to do
26 after choose one file.
27 @param File Return the device path for the last time chosed file.
28
29 @retval EFI_SUCESS Choose the file success.
30 @retval Other errors Choose the file failed.
31**/
32EFI_STATUS
33EFIAPI
34ChooseFile (
35 IN EFI_DEVICE_PATH_PROTOCOL *RootDirectory,
36 IN CHAR16 *FileType OPTIONAL,
37 IN CHOOSE_HANDLER ChooseHandler OPTIONAL,
38 OUT EFI_DEVICE_PATH_PROTOCOL **File OPTIONAL
39 );
40
41#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette