TianoCore EDK2 master
|
#include "UefiShellLevel3CommandsLib.h"
#include <Library/ShellLib.h>
#include <Library/HandleParsingLib.h>
#include <Protocol/ShellDynamicCommand.h>
Go to the source code of this file.
Functions | |
EFI_STATUS | LexicalInsertIntoList (IN OUT CHAR16 **DestList, IN OUT UINTN *DestSize, IN CONST CHAR16 *Item) |
EFI_STATUS | CopyListOfCommandNames (IN OUT CHAR16 **DestList, IN OUT UINTN *DestSize, IN CONST COMMAND_LIST *SourceList) |
STATIC EFI_STATUS | CopyListOfCommandNamesWithDynamic (IN OUT CHAR16 **DestList, IN OUT UINTN *DestSize) |
EFI_STATUS | PrintDynamicCommandHelp (IN CONST CHAR16 *CommandToGetHelpOn, IN CONST CHAR16 *SectionToGetHelpOn, IN BOOLEAN PrintCommandText) |
SHELL_STATUS EFIAPI | ShellCommandRunHelp (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC CONST SHELL_PARAM_ITEM | ParamList [] |
Main file for Help shell level 3 function.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
Copyright (c) 2014, ARM Limited. All rights reserved.
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Help.c.
EFI_STATUS CopyListOfCommandNames | ( | IN OUT CHAR16 ** | DestList, |
IN OUT UINTN * | DestSize, | ||
IN CONST COMMAND_LIST * | SourceList | ||
) |
function to add each command name from the linked list to the string list.
the resultant list is a double NULL terminated list of NULL terminated strings.
[in,out] | DestList | double pointer to the list. may be NULL. |
[in,out] | DestSize | pointer to the size of list. may be 0, if DestList is NULL. |
[in] | SourceList | the double linked list of commands. |
EFI_SUCCESS | the operation was successful. |
STATIC EFI_STATUS CopyListOfCommandNamesWithDynamic | ( | IN OUT CHAR16 ** | DestList, |
IN OUT UINTN * | DestSize | ||
) |
function to add each dynamic command name to the string list.
the resultant list is a double NULL terminated list of NULL terminated strings.
[in,out] | DestList | double pointer to the list. may be NULL. |
[in,out] | DestSize | pointer to the size of list. may be 0, if DestList is NULL. |
EFI_SUCCESS | the operation was successful. |
EFI_STATUS LexicalInsertIntoList | ( | IN OUT CHAR16 ** | DestList, |
IN OUT UINTN * | DestSize, | ||
IN CONST CHAR16 * | Item | ||
) |
function to insert string items into a list in the correct alphabetical place
the resultant list is a double NULL terminated list of NULL terminated strings.
upon successful return the memory must be caller freed (unless passed back in via a loop where it will get reallocated).
[in,out] | DestList | double pointer to the list. may be NULL. |
[in,out] | DestSize | pointer to the size of list. may be 0, if DestList is NULL. |
[in] | Item | the item to insert. |
EFI_SUCCESS | the operation was successful. |
EFI_STATUS PrintDynamicCommandHelp | ( | IN CONST CHAR16 * | CommandToGetHelpOn, |
IN CONST CHAR16 * | SectionToGetHelpOn, | ||
IN BOOLEAN | PrintCommandText | ||
) |
Attempt to print help from a dynamically added command.
[in] | CommandToGetHelpOn | The unicode name of the command that help is requested on. |
[in] | SectionToGetHelpOn | Pointer to the section specifier(s). |
[in] | PrintCommandText | Print the command followed by the help content or just help. |
EFI_SUCCESS | The help was displayed |
EFI_NOT_FOUND | The command name could not be found |
EFI_DEVICE_ERROR | The help data format was incorrect. |
SHELL_STATUS EFIAPI ShellCommandRunHelp | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
STATIC CONST SHELL_PARAM_ITEM ParamList[] |