]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/FileExplorerDxe/FileExplorerDxe.c
MdeModulePkg: Delete useless case code
[mirror_edk2.git] / MdeModulePkg / Universal / FileExplorerDxe / FileExplorerDxe.c
CommitLineData
6f3251c2
ED
1/** @file\r
2 This driver produces file explorer protocol layered on top of the FileExplorerLib from the MdeModulePkg.\r
3\r
4Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include <PiDxe.h>\r
16\r
17#include <Protocol/FileExplorer.h>\r
18#include <Library/FileExplorerLib.h>\r
19#include <Library/UefiBootServicesTableLib.h>\r
20#include <Library/DebugLib.h>\r
21#include <Library/UefiDriverEntryPoint.h>\r
22\r
23EFI_HANDLE mFileExplorerThunkHandle = NULL;\r
24\r
25CONST EFI_FILE_EXPLORER_PROTOCOL mFileExplorerProtocol = {\r
26 ChooseFile\r
27};\r
28\r
29/**\r
30 The user Entry Point for File explorer module.\r
31\r
32 This is the entry point for Print DXE Driver. It installs the file explorer Protocol.\r
33\r
34 @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
35 @param[in] SystemTable A pointer to the EFI System Table.\r
36\r
37 @retval EFI_SUCCESS The entry point is executed successfully.\r
38 @retval Others Some error occurs when executing this entry point.\r
39\r
40**/\r
41EFI_STATUS\r
42EFIAPI\r
43FileExplorerEntryPoint (\r
44 IN EFI_HANDLE ImageHandle,\r
45 IN EFI_SYSTEM_TABLE *SystemTable\r
46 )\r
47{\r
48 EFI_STATUS Status;\r
49\r
50 Status = gBS->InstallMultipleProtocolInterfaces (\r
51 &mFileExplorerThunkHandle,\r
52 &gEfiFileExplorerProtocolGuid, &mFileExplorerProtocol,\r
53 NULL\r
54 );\r
55 ASSERT_EFI_ERROR (Status);\r
56\r
57 return Status;\r
58}\r