+++ /dev/null
-/** @file\r
- This is a simple shell application\r
-\r
- Copyright (c) 2008, Intel Corporation \r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-#include <Uefi.h>\r
-#include <Library/UefiApplicationEntryPoint.h>\r
-#include <Library/UefiLib.h>\r
-\r
-/**\r
- as the real entry point for the application.\r
-\r
- @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
- @param[in] SystemTable A pointer to the EFI System Table.\r
- \r
- @retval EFI_SUCCESS The entry point is executed successfully.\r
- @retval other Some error occurs when executing this entry point.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UefiMain (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-{\r
- Print(L"ShellExecute - Pass"); \r
- return EFI_SUCCESS;\r
-}
\ No newline at end of file
--- /dev/null
+/** @file\r
+ This is a simple shell application\r
+\r
+ Copyright (c) 2008, Intel Corporation \r
+ All rights reserved. This program and the accompanying materials \r
+ are licensed and made available under the terms and conditions of the BSD License \r
+ which accompanies this distribution. The full text of the license may be found at \r
+ http://opensource.org/licenses/bsd-license.php \r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+**/\r
+\r
+#include <Uefi.h>\r
+#include <Library/UefiApplicationEntryPoint.h>\r
+#include <Library/UefiLib.h>\r
+\r
+/**\r
+ as the real entry point for the application.\r
+\r
+ @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
+ @param[in] SystemTable A pointer to the EFI System Table.\r
+ \r
+ @retval EFI_SUCCESS The entry point is executed successfully.\r
+ @retval other Some error occurs when executing this entry point.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UefiMain (\r
+ IN EFI_HANDLE ImageHandle,\r
+ IN EFI_SYSTEM_TABLE *SystemTable\r
+ )\r
+{\r
+ Print(L"ShellExecute - Pass"); \r
+ return EFI_SUCCESS;\r
+}
\ No newline at end of file
#\r
\r
[Sources]\r
- SA.C\r
+ SA.c\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
ShellWriteFile(\r
IN EFI_FILE_HANDLE FileHandle,\r
IN OUT UINTN *BufferSize,\r
- IN CONST VOID *Buffer\r
+ IN VOID *Buffer\r
);\r
\r
/** \r
typedef\r
EFI_STATUS\r
(EFIAPI *EFI_SHELL_WRITE_FILE)(\r
- IN EFI_FILE_HANDLE FileHandle,\r
- IN OUT UINTN *BufferSize,\r
- OUT VOID *Buffer\r
+ IN EFI_FILE_HANDLE FileHandle,\r
+ IN OUT UINTN *BufferSize,\r
+ IN VOID *Buffer\r
);\r
\r
typedef struct _EFI_SHELL_PROTOCOL {\r
#ifndef _SHELLENV2_H_\r
#define _SHELLENV2_H_\r
\r
-#include <Protocol\SimpleTextIn.h>\r
-#include <Protocol\SimpleTextOut.h>\r
-#include <Protocol\EfiShellInterface.h>\r
+#include <Protocol/SimpleTextIn.h>\r
+#include <Protocol/SimpleTextOut.h>\r
+#include <Protocol/EfiShellInterface.h>\r
\r
#define DEFAULT_INIT_ROW 1\r
#define DEFAULT_AUTO_LF FALSE\r
#ifndef _SHELLINTERFACE_H_\r
#define _SHELLINTERFACE_H_\r
\r
-#include <Protocol\LoadedImage.h>\r
+#include <Protocol/LoadedImage.h>\r
\r
#define SHELL_INTERFACE_PROTOCOL_GUID \\r
{ \\r
///\r
typedef enum {\r
ARG_NO_ATTRIB = 0x0,\r
- ARG_IS_QUOTED = 0x1,\r
- ARG_PARTIALLY_QUOTED = 0x2,\r
- ARG_FIRST_HALF_QUOTED = 0x4,\r
- ARG_FIRST_CHAR_IS_ESC = 0x8\r
-};\r
+ ARG_IS_QUOTED = BIT0,\r
+ ARG_PARTIALLY_QUOTED = BIT1,\r
+ ARG_FIRST_HALF_QUOTED = BIT2,\r
+ ARG_FIRST_CHAR_IS_ESC = BIT3\r
+} EFI_SHELL_ARG_INFO_TYPES;\r
\r
///\r
/// attributes for an argument.\r
}\r
Status = gBS->OpenProtocol(*DeviceHandle,\r
&gEfiSimpleFileSystemProtocolGuid,\r
- &EfiSimpleFileSystemProtocol,\r
+ (VOID**) &EfiSimpleFileSystemProtocol,\r
gImageHandle,\r
NULL,\r
EFI_OPEN_PROTOCOL_GET_PROTOCOL);\r
CheckPackage, \r
ProblemParam, \r
AutoPageBreak, \r
- mEfiShellParametersProtocol->Argv,\r
+ (CONST CHAR16**) mEfiShellParametersProtocol->Argv,\r
mEfiShellParametersProtocol->Argc ));\r
}\r
\r
CheckPackage, \r
ProblemParam, \r
AutoPageBreak, \r
- mEfiShellInterface->Argv,\r
+ (CONST CHAR16**) mEfiShellInterface->Argv,\r
mEfiShellInterface->Argc ));\r
}\r
\r