]> git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Application/ShellCTestApp/ShellCTestApp.c
0a50278d7f4a1284484d081f15028f5707d93274
[mirror_edk2.git] / ShellPkg / Application / ShellCTestApp / ShellCTestApp.c
1 /** @file
2 This is THE shell (application)
3
4 Copyright (c) 2009, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include <Uefi.h>
16
17 #include <Library/UefiLib.h>
18 #include <Library/DebugLib.h>
19 #include <Library/ShellCEntryLib.h>
20
21 /**
22 UEFI application entry point which has an interface similar to a
23 standard C main function.
24
25 The ShellCEntryLib library instance wrappers the actual UEFI application
26 entry point and calls this ShellAppMain function.
27
28 @param ImageHandle The image handle of the UEFI Application.
29 @param SystemTable A pointer to the EFI System Table.
30
31 @retval 0 The application exited normally.
32 @retval Other An error occurred.
33
34 **/
35 INTN
36 EFIAPI
37 ShellAppMain (
38 IN INTN Argc,
39 IN CHAR16 **Argv
40 )
41 {
42 INTN Index;
43
44 Print(L"ShellCTestApp.c:ShellAppMain called with %d parameters\n", Argc);
45 for (Index = 0; Index < Argc; Index++) {
46 Print(L"Argv[%d]: %s\n", Index, Argv[Index]);
47 }
48
49 return 0;
50 }