TianoCore EDK2 master
|
#include "CapsuleApp.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | GetArg (VOID) |
EFI_SHELL_PROTOCOL * | GetShellProtocol (VOID) |
EFI_STATUS | ReadFileToBuffer (IN CHAR16 *FileName, OUT UINTN *BufferSize, OUT VOID **Buffer) |
EFI_STATUS | WriteFileFromBuffer (IN CHAR16 *FileName, IN UINTN BufferSize, IN VOID *Buffer) |
Variables | |
UINTN | Argc |
CHAR16 ** | Argv |
EFI_SHELL_PROTOCOL * | mShellProtocol = NULL |
A shell application that triggers capsule update process.
Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AppSupport.c.
EFI_STATUS GetArg | ( | VOID | ) |
EFI_SHELL_PROTOCOL * GetShellProtocol | ( | VOID | ) |
EFI_STATUS ReadFileToBuffer | ( | IN CHAR16 * | FileName, |
OUT UINTN * | BufferSize, | ||
OUT VOID ** | Buffer | ||
) |
Read a file.
[in] | FileName | The file to be read. |
[out] | BufferSize | The file buffer size |
[out] | Buffer | The file buffer |
EFI_SUCCESS | Read file successfully |
EFI_NOT_FOUND | Shell protocol or file not found |
others | Read file failed |
Definition at line 81 of file AppSupport.c.
EFI_STATUS WriteFileFromBuffer | ( | IN CHAR16 * | FileName, |
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Write a file.
[in] | FileName | The file to be written. |
[in] | BufferSize | The file buffer size |
[in] | Buffer | The file buffer |
EFI_SUCCESS | Write file successfully |
EFI_NOT_FOUND | Shell protocol not found |
others | Write file failed |
Definition at line 159 of file AppSupport.c.
UINTN Argc |
Definition at line 11 of file AppSupport.c.
CHAR16** Argv |
Definition at line 12 of file AppSupport.c.
EFI_SHELL_PROTOCOL* mShellProtocol = NULL |
Definition at line 13 of file AppSupport.c.