summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/FileExplorerLib
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 21:08:52 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:45 +0800
commitd1102dba7210b95e41d06c2338a22ba6af248645 (patch)
tree8b4af076b5d6f2aa7f35563d4defcca4d4bfdd87 /MdeModulePkg/Library/FileExplorerLib
parentca79bab7af4770c5eb578f6d495af01705aedb79 (diff)
downloadedk2-d1102dba7210b95e41d06c2338a22ba6af248645.tar.gz
edk2-d1102dba7210b95e41d06c2338a22ba6af248645.tar.bz2
edk2-d1102dba7210b95e41d06c2338a22ba6af248645.zip
MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/FileExplorerLib')
-rw-r--r--MdeModulePkg/Library/FileExplorerLib/FileExplorer.c52
-rw-r--r--MdeModulePkg/Library/FileExplorerLib/FileExplorer.h22
-rw-r--r--MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf12
-rw-r--r--MdeModulePkg/Library/FileExplorerLib/FileExplorerString.uni26
-rw-r--r--MdeModulePkg/Library/FileExplorerLib/FileExplorerVfr.vfr4
5 files changed, 58 insertions, 58 deletions
diff --git a/MdeModulePkg/Library/FileExplorerLib/FileExplorer.c b/MdeModulePkg/Library/FileExplorerLib/FileExplorer.c
index 9182751ad7..d9ce57f8f4 100644
--- a/MdeModulePkg/Library/FileExplorerLib/FileExplorer.c
+++ b/MdeModulePkg/Library/FileExplorerLib/FileExplorer.c
@@ -1,7 +1,7 @@
/** @file
File explorer related functions.
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
@@ -61,7 +61,7 @@ HII_VENDOR_DEVICE_PATH FeHiiVendorDevicePath = {
{
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
- {
+ {
(UINT8) (END_DEVICE_PATH_LENGTH),
(UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)
}
@@ -554,7 +554,7 @@ LibFileInfo (
Buffer = NULL;
BufferSize = 0;
-
+
Status = FHand->GetInfo (
FHand,
InfoType,
@@ -691,19 +691,19 @@ LibAppendFileName (
Size1 = StrSize (Str1);
Size2 = StrSize (Str2);
-
+
//
// Check overflow
//
if (((MAX_UINTN - Size1) < Size2) || ((MAX_UINTN - Size1 - Size2) < sizeof(CHAR16))) {
return NULL;
}
-
+
MaxLen = (Size1 + Size2 + sizeof (CHAR16))/ sizeof (CHAR16);
Str = AllocateZeroPool (Size1 + Size2 + sizeof (CHAR16));
ASSERT (Str != NULL);
- TmpStr = AllocateZeroPool (Size1 + Size2 + sizeof (CHAR16));
+ TmpStr = AllocateZeroPool (Size1 + Size2 + sizeof (CHAR16));
ASSERT (TmpStr != NULL);
StrCpyS (Str, MaxLen, Str1);
@@ -724,7 +724,7 @@ LibAppendFileName (
//
//
- // Use TmpStr as a backup, as StrCpyS in BaseLib does not handle copy of two strings
+ // Use TmpStr as a backup, as StrCpyS in BaseLib does not handle copy of two strings
// that overlap.
//
StrCpyS (TmpStr, MaxLen, Ptr + 3);
@@ -736,7 +736,7 @@ LibAppendFileName (
//
//
- // Use TmpStr as a backup, as StrCpyS in BaseLib does not handle copy of two strings
+ // Use TmpStr as a backup, as StrCpyS in BaseLib does not handle copy of two strings
// that overlap.
//
StrCpyS (TmpStr, MaxLen, Ptr + 2);
@@ -750,7 +750,7 @@ LibAppendFileName (
}
FreePool (TmpStr);
-
+
return Str;
}
@@ -845,7 +845,7 @@ LibFindFileSystem (
VolumeLabel,
MenuEntry->HelpString
);
- MenuEntry->DisplayStringToken = HiiSetString (
+ MenuEntry->DisplayStringToken = HiiSetString (
gFileExplorerPrivate.FeHiiHandle,
0,
MenuEntry->DisplayString,
@@ -871,16 +871,16 @@ LibFindFileSystem (
/**
Find the file handle from the input menu info.
-
+
@param MenuEntry Input Menu info.
@param RetFileHandle Return the file handle for the input device path.
-
+
@retval EFI_SUCESS Find the file handle success.
@retval Other Find the file handle failure.
**/
EFI_STATUS
LibGetFileHandleFromMenu (
- IN MENU_ENTRY *MenuEntry,
+ IN MENU_ENTRY *MenuEntry,
OUT EFI_FILE_HANDLE *RetFileHandle
)
{
@@ -917,18 +917,18 @@ LibGetFileHandleFromMenu (
/**
Find the file handle from the input device path info.
-
+
@param RootDirectory Device path info.
@param RetFileHandle Return the file handle for the input device path.
@param ParentFileName Parent file name.
@param DeviceHandle Driver handle for this partition.
-
+
@retval EFI_SUCESS Find the file handle success.
@retval Other Find the file handle failure.
**/
EFI_STATUS
LibGetFileHandleFromDevicePath (
- IN EFI_DEVICE_PATH_PROTOCOL *RootDirectory,
+ IN EFI_DEVICE_PATH_PROTOCOL *RootDirectory,
OUT EFI_FILE_HANDLE *RetFileHandle,
OUT UINT16 **ParentFileName,
OUT EFI_HANDLE *DeviceHandle
@@ -953,12 +953,12 @@ LibGetFileHandleFromDevicePath (
if (EFI_ERROR (Status)) {
return Status;
}
-
+
Status = gBS->HandleProtocol (Handle, &gEfiSimpleFileSystemProtocolGuid, (VOID**)&Volume);
if (EFI_ERROR (Status)) {
return Status;
}
-
+
//
// Open the Volume to get the File System handle
//
@@ -974,7 +974,7 @@ LibGetFileHandleFromDevicePath (
*RetFileHandle = FileHandle;
return EFI_SUCCESS;
}
-
+
//
// Duplicate the device path to avoid the access to unaligned device path node.
// Because the device path consists of one or more FILE PATH MEDIA DEVICE PATH
@@ -990,7 +990,7 @@ LibGetFileHandleFromDevicePath (
Status = EFI_OUT_OF_RESOURCES;
goto Done;
}
-
+
//
// Parse each MEDIA_FILEPATH_DP node. There may be more than one, since the
// directory information and filename can be seperate. The goal is to inch
@@ -1123,11 +1123,11 @@ LibCreateNewFile (
/**
Find files under current directory.
-
+
All files and sub-directories in current directory
will be stored in DirectoryMenu for future use.
- @param FileHandle Parent file handle.
+ @param FileHandle Parent file handle.
@param FileName Parent file name.
@param DeviceHandle Driver handle for this partition.
@@ -1223,7 +1223,7 @@ LibFindFiles (
} else {
NewMenuEntry->DisplayString = LibStrDuplicate (DirInfo->FileName);
}
-
+
NewMenuEntry->DisplayStringToken = HiiSetString (
gFileExplorerPrivate.FeHiiHandle,
0,
@@ -1459,7 +1459,7 @@ LibGetDevicePath (
}
/**
- Choose a file in the specified directory.
+ Choose a file in the specified directory.
If user input NULL for the RootDirectory, will choose file in the system.
@@ -1612,7 +1612,7 @@ FileExplorerLibConstructor (
//
Status = gBS->LocateProtocol (&gEfiFormBrowser2ProtocolGuid, NULL, (VOID **) &gFileExplorerPrivate.FormBrowser2);
ASSERT_EFI_ERROR (Status);
-
+
InitializeListHead (&gFileExplorerPrivate.FsOptionMenu->Head);
return EFI_SUCCESS;
@@ -1647,7 +1647,7 @@ FileExplorerLibDestructor (
NULL
);
ASSERT_EFI_ERROR (Status);
-
+
HiiRemovePackages (gFileExplorerPrivate.FeHiiHandle);
}
diff --git a/MdeModulePkg/Library/FileExplorerLib/FileExplorer.h b/MdeModulePkg/Library/FileExplorerLib/FileExplorer.h
index b9a84fb667..bf1450dbd5 100644
--- a/MdeModulePkg/Library/FileExplorerLib/FileExplorer.h
+++ b/MdeModulePkg/Library/FileExplorerLib/FileExplorer.h
@@ -1,14 +1,14 @@
/** @file
File explorer lib.
-Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
-This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which accompanies this distribution. The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution. The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef _FILE_EXPLORER_H_
@@ -226,8 +226,8 @@ EFI_STATUS
LibUpdateFileExplorer (
IN UINT16 KeyValue
);
-
-
+
+
/**
Get the device path info saved in the menu structure.
@@ -239,4 +239,4 @@ LibGetDevicePath (
IN UINT16 KeyValue
);
-#endif
+#endif
diff --git a/MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf b/MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
index 75071d9541..5d9822d95f 100644
--- a/MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
+++ b/MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
@@ -1,15 +1,15 @@
## @file
# library defines a set of interfaces for how to do file explorer.
-#
-# Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>
+#
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials are licensed and made available under
# the terms and conditions of the BSD License that accompanies this distribution.
# The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php.
-#
+#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#
+#
##
[Defines]
INF_VERSION = 0x00010005
@@ -52,7 +52,7 @@
[Guids]
gEfiFileSystemVolumeLabelInfoIdGuid ## SOMETIMES_CONSUMES ## GUID (Indicate the information type is volume)
gEfiIfrTianoGuid ## SOMETIMES_CONSUMES ## GUID (Extended IFR Guid Opcode)
-
+
[Protocols]
gEfiSimpleFileSystemProtocolGuid ## SOMETIMES_CONSUMES
gEfiHiiConfigAccessProtocolGuid ## PRODUCES
@@ -60,4 +60,4 @@
gEfiDevicePathToTextProtocolGuid ## PRODUCES
[Depex.common.DXE_DRIVER]
- gEfiFormBrowser2ProtocolGuid AND gEfiHiiDatabaseProtocolGuid \ No newline at end of file
+ gEfiFormBrowser2ProtocolGuid AND gEfiHiiDatabaseProtocolGuid
diff --git a/MdeModulePkg/Library/FileExplorerLib/FileExplorerString.uni b/MdeModulePkg/Library/FileExplorerLib/FileExplorerString.uni
index e16adb66fc..64f4a5884f 100644
--- a/MdeModulePkg/Library/FileExplorerLib/FileExplorerString.uni
+++ b/MdeModulePkg/Library/FileExplorerLib/FileExplorerString.uni
@@ -1,24 +1,24 @@
///** @file
//
-// Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
-// This program and the accompanying materials
-// are licensed and made available under the terms and conditions of the BSD License
-// which accompanies this distribution. The full text of the license may be found at
-// http://opensource.org/licenses/bsd-license.php
-//
-// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-//
+// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
+// This program and the accompanying materials
+// are licensed and made available under the terms and conditions of the BSD License
+// which accompanies this distribution. The full text of the license may be found at
+// http://opensource.org/licenses/bsd-license.php
+//
+// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+//
// Module Name:
//
// FileExplorerString.uni
-//
+//
// Abstract:
-//
+//
// String definitions for file exporer library.
-//
+//
// Revision History:
-//
+//
// --*/
/=#
diff --git a/MdeModulePkg/Library/FileExplorerLib/FileExplorerVfr.vfr b/MdeModulePkg/Library/FileExplorerLib/FileExplorerVfr.vfr
index b2bf94d5c7..b969d97a8c 100644
--- a/MdeModulePkg/Library/FileExplorerLib/FileExplorerVfr.vfr
+++ b/MdeModulePkg/Library/FileExplorerLib/FileExplorerVfr.vfr
@@ -2,7 +2,7 @@
//
// File Explorer Formset
//
-// Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
// which accompanies this distribution. The full text of the license may be found at
@@ -82,4 +82,4 @@ formset
key = KEY_VALUE_NO_CREATE_FOLDER_AND_EXIT;
endform;
-endformset; \ No newline at end of file
+endformset;