TianoCore EDK2 master
Loading...
Searching...
No Matches
TftpApp.c
Go to the documentation of this file.
1
10#include "Tftp.h"
11
12//
13// String token ID of help message text.
14// Shell supports to find help message in the resource section of an application image if
15// .MAN file is not found. This global variable is added to make build tool recognizes
16// that the help string is consumed by user and then build tool will add the string into
17// the resource section. Thus the application can use '-?' option to show help message in
18// Shell.
19//
20GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN (STR_GET_HELP_TFTP);
21
33EFIAPI
35 IN EFI_HANDLE ImageHandle,
36 IN EFI_SYSTEM_TABLE *SystemTable
37 )
38{
39 EFI_STATUS Status;
40
41 mTftpHiiHandle = InitializeHiiPackage (ImageHandle);
42 if (mTftpHiiHandle == NULL) {
43 return EFI_ABORTED;
44 }
45
46 Status = (EFI_STATUS)RunTftp (ImageHandle, SystemTable);
47 HiiRemovePackages (mTftpHiiHandle);
48 return Status;
49}
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
SHELL_STATUS RunTftp(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: Tftp.c:277
EFI_STATUS EFIAPI TftpAppInitialize(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: TftpApp.c:34
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define STRING_TOKEN(t)