TianoCore EDK2 master
Loading...
Searching...
No Matches
DpApp.c
Go to the documentation of this file.
1
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
32EFIAPI
34 IN EFI_HANDLE ImageHandle,
35 IN EFI_SYSTEM_TABLE *SystemTable
36 )
37{
38 EFI_STATUS Status;
39
40 mDpHiiHandle = InitializeHiiPackage (ImageHandle);
41 if (mDpHiiHandle == NULL) {
42 return EFI_ABORTED;
43 }
44
45 Status = (EFI_STATUS)RunDp (ImageHandle, SystemTable);
47 return Status;
48}
SHELL_STATUS RunDp(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: Dp.c:670
EFI_HII_HANDLE mDpHiiHandle
Definition: Dp.c:39
EFI_STATUS EFIAPI DpAppInitialize(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: DpApp.c:33
VOID EFIAPI HiiRemovePackages(IN EFI_HII_HANDLE HiiHandle)
Definition: HiiLib.c:253
STATIC EFI_HII_HANDLE InitializeHiiPackage(EFI_HANDLE ImageHandle)
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define GLOBAL_REMOVE_IF_UNREFERENCED
Definition: Base.h:48
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define STRING_TOKEN(t)