TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeFileExplorerProtocol.c
Go to the documentation of this file.
1
14#include <Uefi.h>
15#include <Base.h>
17
19
20#include <Library/BaseLib.h>
21#include <Library/DebugLib.h>
22
24
38EFIAPI
40 IN EFI_HANDLE ImageHandle,
41 IN EFI_SYSTEM_TABLE *SystemTable
42 )
43{
44 EFI_STATUS Status;
45
46 Status = SystemTable->BootServices->LocateProtocol (
47 &gEfiFileExplorerProtocolGuid,
48 NULL,
49 (VOID **)&mProtocol
50 );
51 ASSERT_EFI_ERROR (Status);
52 ASSERT (mProtocol != NULL);
53
54 return Status;
55}
56
77EFIAPI
79 IN EFI_DEVICE_PATH_PROTOCOL *RootDirectory,
80 IN CHAR16 *FileType OPTIONAL,
81 IN CHOOSE_HANDLER ChooseHandler OPTIONAL,
82 OUT EFI_DEVICE_PATH_PROTOCOL **File OPTIONAL
83 )
84{
85 return mProtocol->ChooseFile (RootDirectory, FileType, ChooseHandler, File);
86}
EFI_STATUS EFIAPI FileExplorerConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI ChooseFile(IN EFI_DEVICE_PATH_PROTOCOL *RootDirectory, IN CHAR16 *FileType OPTIONAL, IN CHOOSE_HANDLER ChooseHandler OPTIONAL, OUT EFI_DEVICE_PATH_PROTOCOL **File OPTIONAL)
BOOLEAN(EFIAPI * CHOOSE_HANDLER)(IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
Definition: FileExplorer.h:33
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
#define ASSERT_EFI_ERROR(StatusParameter)
Definition: DebugLib.h:462
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33