StatusImpl.cpp revision 1c94c0a63ba68be1a7b2c640e70d7a06464e4fca
153N/A * VBox frontends: Basic Frontend (BFE): 153N/A * Implementation of VMStatus class 919N/A * Copyright (C) 2006-2007 Sun Microsystems, Inc. 919N/A * This file is part of VirtualBox Open Source Edition (OSE), as 919N/A * you can redistribute it and/or modify it under the terms of the GNU 919N/A * General Public License (GPL) as published by the Free Software 919N/A * Foundation, in version 2 as it comes in the "COPYING" file of the 919N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 919N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 919N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 919N/A * additional information or have any questions. 911N/A//////////////////////////////////////////////////////////////////////////////// 153N/A//////////////////////////////////////////////////////////////////////////////// 153N/A * The Main status driver instance data. 970N/A /** The LED connectors. */ 970N/A /** Pointer to the LED ports interface above us. */ 153N/A /** Pointer to the array of LED pointers. */ 969N/A /** The unit number corresponding to the first entry in the LED array. */ 493N/A /** The unit number corresponding to the last entry in the LED array. 153N/A * (The size of the LED array is iLastLUN - iFirstLUN + 1.) */ 153N/A * Notification about a unit which have been changed. 970N/A * The driver must discard any pointers to data owned by 970N/A * the unit and requery it. * @param pInterface Pointer to the interface structure containing the called function pointer. * @param iLUN The unit number. Log((
"drvUnitChanged: iLUN=%d pLed=%p\n",
iLUN,
pLed));
* Queries an interface to the driver. * @returns Pointer to interface. * @returns NULL if the interface was not supported by the driver. * @param pInterface Pointer to this interface structure. * @param enmInterface The requested interface identification. * Destruct a status driver instance. * @param pDrvIns The driver instance data. * Construct a status driver instance. * @param pDrvIns The driver instance data. * If the registration structure is needed, pDrvIns->pDrvReg points to it. * @param pCfgHandle Configuration node handle for the driver. Use this to obtain the configuration * of the driver instance. It's also found in pDrvIns->pCfgHandle, but like * iInstance it's expected to be used a bit in this function. * Validate configuration. AssertMsgFailed((
"Configuration error: Not possible to attach anything to this driver!\n"));
AssertMsgFailed((
"Configuration error: Failed to query the \"papLeds\" value! rc=%Vrc\n",
rc));
AssertMsgFailed((
"Configuration error: Failed to query the \"First\" value! rc=%Vrc\n",
rc));
AssertMsgFailed((
"Configuration error: Failed to query the \"Last\" value! rc=%Vrc\n",
rc));
* Get the ILedPorts interface of the above driver/device and * query the LEDs we want. * VMStatus driver registration record. "Main status driver (Main as in the API).",