VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDriver1CommandsLib/Reconnect.c@ 75265

Last change on this file since 75265 was 48674, checked in by vboxsync, 11 years ago

EFI: Export newly imported tinaocore UEFI sources to OSE.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette