]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/Library/ShellCEntryLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ShellPkg / Include / Library / ShellCEntryLib.h
index 762c95b598184d286e377cfa43c832b9328a2ea0..ced72036d2dc1730356fb82f47788e8bc83bb851 100644 (file)
@@ -1,32 +1,33 @@
 /** @file\r
-  Provides application point extension for "C" style main funciton \r
+  Provides application point extension for "C" style main function.\r
 \r
-Copyright (c) 2006 - 2009, 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
+  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
+#ifndef _SHELL_C_ENTRY_LIB_\r
+#define _SHELL_C_ENTRY_LIB_\r
+\r
 /**\r
-  Intermediate entry point for the application that will in turn call into the "C" \r
-  style main function.\r
-\r
-  this application must have a function like:\r
-  INT32 \r
-  EFIAPI \r
-  main(\r
-    UINTN Argc, \r
-    CHAR16 **Argv\r
-  );\r
+  UEFI application entry point which has an interface similar to a\r
+  standard C main function.\r
+\r
+  The ShellCEntryLib library instance wrappers the actual UEFI application\r
+  entry point and calls this ShellAppMain function.\r
+\r
+  @param[in]  Argc  The number of parameters.\r
+  @param[in]  Argv  The array of pointers to parameters.\r
+\r
+  @retval  0               The application exited normally.\r
+  @retval  Other           An error occurred.\r
+\r
 **/\r
-EFI_STATUS\r
+INTN\r
 EFIAPI\r
-ShellCEntry(\r
-  IN EFI_HANDLE        ImageHandle,\r
-  IN EFI_SYSTEM_TABLE  *SystemTable\r
-  );
\ No newline at end of file
+ShellAppMain (\r
+  IN UINTN   Argc,\r
+  IN CHAR16  **Argv\r
+  );\r
+\r
+#endif\r