VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/DynamicCommand/DpDynamicCommand/DpApp.c@ 80721

Last change on this file since 80721 was 80721, checked in by vboxsync, 5 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1/** @file
2 Entrypoint of "dp" shell standalone application.
3
4 Copyright (c) 2017, Intel Corporation. All rights reserved. <BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9#include "Dp.h"
10
11//
12// String token ID of help message text.
13// Shell supports to find help message in the resource section of an application image if
14// .MAN file is not found. This global variable is added to make build tool recognizes
15// that the help string is consumed by user and then build tool will add the string into
16// the resource section. Thus the application can use '-?' option to show help message in
17// Shell.
18//
19GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN (STR_GET_HELP_DP);
20
21/**
22 Entry point of Tftp standalone application.
23
24 @param ImageHandle The image handle of the process.
25 @param SystemTable The EFI System Table pointer.
26
27 @retval EFI_SUCCESS Tftp command is executed sucessfully.
28 @retval EFI_ABORTED HII package was failed to initialize.
29 @retval others Other errors when executing tftp command.
30**/
31EFI_STATUS
32EFIAPI
33DpAppInitialize (
34 IN EFI_HANDLE ImageHandle,
35 IN EFI_SYSTEM_TABLE *SystemTable
36 )
37{
38 EFI_STATUS Status;
39 mDpHiiHandle = InitializeHiiPackage (ImageHandle);
40 if (mDpHiiHandle == NULL) {
41 return EFI_ABORTED;
42 }
43
44 Status = (EFI_STATUS)RunDp (ImageHandle, SystemTable);
45 HiiRemovePackages (mDpHiiHandle);
46 return Status;
47}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette