]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDriver1CommandsLib/Reconnect.c
ShellPkg: Fixes and updates for the 'devices' command
[mirror_edk2.git] / ShellPkg / Library / UefiShellDriver1CommandsLib / Reconnect.c
CommitLineData
4ba49616 1/** @file\r
2 Main file for Reconnect shell Driver1 function.\r
3\r
361a8267 4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
4ba49616 5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include "UefiShellDriver1CommandsLib.h"\r
16\r
361a8267 17/**\r
18 Function for 'reconnect' command.\r
19\r
20 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
21 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
22**/\r
4ba49616 23SHELL_STATUS\r
24EFIAPI\r
25ShellCommandRunReconnect (\r
26 IN EFI_HANDLE ImageHandle,\r
27 IN EFI_SYSTEM_TABLE *SystemTable\r
28 )\r
29{\r
30 SHELL_STATUS ShellStatus;\r
31\r
6878e7a7 32 gInReconnect = TRUE;\r
33\r
4ba49616 34 ShellStatus = ShellCommandRunDisconnect(ImageHandle, SystemTable);\r
35 if (ShellStatus == SHELL_SUCCESS) {\r
36 ShellStatus = ShellCommandRunConnect(ImageHandle, SystemTable);\r
37 }\r
6878e7a7 38\r
39 gInReconnect = FALSE;\r
40\r
4ba49616 41 return (ShellStatus);\r
42}\r