3 This library class defines a set of interfaces for how to do file explorer.
5 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __FILE_EXPLORER_LIB_H__
11 #define __FILE_EXPLORER_LIB_H__
13 #include <Protocol/FileExplorer.h>
16 Choose a file in the specified directory.
18 If user input NULL for the RootDirectory, will choose file in the system.
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.
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.
29 @retval EFI_SUCESS Choose the file success.
30 @retval Other errors Choose the file failed.
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