]>
Commit | Line | Data |
---|---|---|
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 | |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
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 | |
19 | GLOBAL_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 | |
27 | @retval EFI_SUCCESS Tftp command is executed successfully.\r | |
28 | @retval EFI_ABORTED HII package was failed to initialize.\r | |
29 | @retval others Other errors when executing tftp command.\r | |
30 | **/\r | |
31 | EFI_STATUS\r | |
32 | EFIAPI\r | |
33 | DpAppInitialize (\r | |
34 | IN EFI_HANDLE ImageHandle,\r | |
35 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
36 | )\r | |
37 | {\r | |
38 | EFI_STATUS Status;\r | |
39 | \r | |
40 | mDpHiiHandle = InitializeHiiPackage (ImageHandle);\r | |
41 | if (mDpHiiHandle == NULL) {\r | |
42 | return EFI_ABORTED;\r | |
43 | }\r | |
44 | \r | |
45 | Status = (EFI_STATUS)RunDp (ImageHandle, SystemTable);\r | |
46 | HiiRemovePackages (mDpHiiHandle);\r | |
47 | return Status;\r | |
48 | }\r |