UefiShellNetwork1CommandsLib.c revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Main file for NULL named library for network1 shell command functions.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved. <BR>
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync This program and the accompanying materials
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync are licensed and made available under the terms and conditions of the BSD License
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync which accompanies this distribution. The full text of the license may be found at
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONST CHAR16 gShellNetwork1FileName[] = L"ShellCommands";
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync return the file name of the help text file if not using HII.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @return The string pointer to the file name.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Constructor for the Shell Network1 Commands library.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Install the handlers for Network1 UEFI Shell 2.0 profile commands.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ImageHandle The image handle of the process.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param SystemTable The EFI System Table pointer.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_SUCCESS The shell command handlers were installed sucessfully.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @retval EFI_UNSUPPORTED The shell level required was not found.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync // check our bit of the profiles mask
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync gShellNetwork1HiiHandle = HiiAddPackages (&gShellNetwork1HiiGuid, gImageHandle, UefiShellNetwork1CommandsLibStrings, NULL);
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync // install our shell command handlers
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync ShellCommandRegisterCommandName(L"ping", ShellCommandRunPing , ShellCommandGetManFileNameNetwork1, 0, L"network1", TRUE , gShellNetwork1HiiHandle, STRING_TOKEN(STR_GET_HELP_PING));
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync ShellCommandRegisterCommandName(L"ifconfig",ShellCommandRunIfconfig , ShellCommandGetManFileNameNetwork1, 0, L"network1", TRUE , gShellNetwork1HiiHandle, STRING_TOKEN(STR_GET_HELP_IFCONFIG));
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync Destructor for the library. free any resources.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param ImageHandle The image handle of the process.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync @param SystemTable The EFI System Table pointer.