summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellCEntryLib
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-23 21:40:29 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-23 21:40:29 +0000
commit322016e52d62dc5432e4469aa7d4cf20d4c30f78 (patch)
tree0bb3496fb1642f71e18de45bbfdfeec27434d7cf /ShellPkg/Library/UefiShellCEntryLib
parent9b3bf083f7b6426372b77db7e041b0b4c22ec9c3 (diff)
downloadedk2-322016e52d62dc5432e4469aa7d4cf20d4c30f78.zip
edk2-322016e52d62dc5432e4469aa7d4cf20d4c30f78.tar.gz
edk2-322016e52d62dc5432e4469aa7d4cf20d4c30f78.tar.bz2
Restore Include/Library/ShellCEntryLib.h. Cleanup function and
function prototype comments. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8634 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellCEntryLib')
-rw-r--r--ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c b/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c
index ce41166..43d429e 100644
--- a/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c
+++ b/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c
@@ -18,6 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Protocol/EfiShellInterface.h>
#include <Protocol/EfiShellParameters.h>
+#include <Library/ShellCEntryLib.h>
#include <Library/DebugLib.h>
INTN
@@ -28,17 +29,19 @@ ShellAppMain (
);
/**
- UEFI entry point for an application that will in turn call a C
- style ShellAppMain function.
+ UEFI entry point for an application that will in turn call the
+ ShellAppMain function which has parameters similar to a standard C
+ main function.
- This application must have a function defined as follows:
+ An application that uses UefiShellCEntryLib must have a ShellAppMain
+ function as prototyped in Include/Library/ShellCEntryLib.h.
+
+ @param ImageHandle The image handle of the UEFI Application.
+ @param SystemTable A pointer to the EFI System Table.
+
+ @retval EFI_SUCCESS The application exited normally.
+ @retval Other An error occurred.
- INTN
- EFIAPI
- ShellAppMain (
- IN INTN Argc,
- IN CHAR16 **Argv
- );
**/
EFI_STATUS
EFIAPI