]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/DynamicCommand/DpDynamicCommand/DpApp.c
ShellPkg/DynamicCommand: Fix various typos
[mirror_edk2.git] / ShellPkg / DynamicCommand / DpDynamicCommand / DpApp.c
CommitLineData
92034c4c
RN
1/** @file\r
2 Entrypoint of "dp" shell standalone application.\r
3\r
4 Copyright (c) 2017, Intel Corporation. All rights reserved. <BR>\r
5\r
56ba3746 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
92034c4c
RN
7\r
8**/\r
9#include "Dp.h"\r
10\r
11//\r
12// String token ID of help message text.\r
13// Shell supports to find help message in the resource section of an application image if\r
14// .MAN file is not found. This global variable is added to make build tool recognizes\r
15// that the help string is consumed by user and then build tool will add the string into\r
16// the resource section. Thus the application can use '-?' option to show help message in\r
17// Shell.\r
18//\r
19GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN (STR_GET_HELP_DP);\r
20\r
21/**\r
22 Entry point of Tftp standalone application.\r
23\r
24 @param ImageHandle The image handle of the process.\r
25 @param SystemTable The EFI System Table pointer.\r
26\r
f16bd394 27 @retval EFI_SUCCESS Tftp command is executed successfully.\r
92034c4c
RN
28 @retval EFI_ABORTED HII package was failed to initialize.\r
29 @retval others Other errors when executing tftp command.\r
30**/\r
31EFI_STATUS\r
32EFIAPI\r
33DpAppInitialize (\r
34 IN EFI_HANDLE ImageHandle,\r
35 IN EFI_SYSTEM_TABLE *SystemTable\r
36 )\r
37{\r
38 EFI_STATUS Status;\r
39 mDpHiiHandle = InitializeHiiPackage (ImageHandle);\r
40 if (mDpHiiHandle == NULL) {\r
41 return EFI_ABORTED;\r
42 }\r
43\r
44 Status = (EFI_STATUS)RunDp (ImageHandle, SystemTable);\r
45 HiiRemovePackages (mDpHiiHandle);\r
46 return Status;\r
47}\r