]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/FileExplorerLib.h
MdeModulePkg: Change OPTIONAL keyword usage style
[mirror_edk2.git] / MdeModulePkg / Include / Library / FileExplorerLib.h
CommitLineData
e7c00761
ED
1/** @file\r
2\r
3 This library class defines a set of interfaces for how to do file explorer.\r
4\r
d1102dba 5Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
9d510e61 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
e7c00761
ED
7\r
8**/\r
9\r
10#ifndef __FILE_EXPLORER_LIB_H__\r
11#define __FILE_EXPLORER_LIB_H__\r
12\r
9e41f686 13#include <Protocol/FileExplorer.h>\r
e7c00761
ED
14\r
15/**\r
d1102dba 16 Choose a file in the specified directory.\r
e7c00761
ED
17\r
18 If user input NULL for the RootDirectory, will choose file in the system.\r
19\r
20 If user input *File != NULL, function will return the allocate device path\r
21 info for the choosed file, caller has to free the memory after use it.\r
22\r
23 @param RootDirectory Pointer to the root directory.\r
24 @param FileType The file type need to choose.\r
25 @param ChooseHandler Function pointer to the extra task need to do\r
26 after choose one file.\r
27 @param File Return the device path for the last time chosed file.\r
28\r
29 @retval EFI_SUCESS Choose the file success.\r
30 @retval Other errors Choose the file failed.\r
31**/\r
32EFI_STATUS\r
33EFIAPI\r
34ChooseFile (\r
35 IN EFI_DEVICE_PATH_PROTOCOL *RootDirectory,\r
e3917e22
MK
36 IN CHAR16 *FileType OPTIONAL,\r
37 IN CHOOSE_HANDLER ChooseHandler OPTIONAL,\r
e7c00761
ED
38 OUT EFI_DEVICE_PATH_PROTOCOL **File OPTIONAL\r
39 );\r
40\r
41#endif\r