VirtualBox

Changeset 4031 in vbox


Ignore:
Timestamp:
Aug 4, 2007 9:57:51 AM (18 years ago)
Author:
vboxsync
Message:

Moved shared folders status led

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r4023 r4031  
    18771877        case DeviceType_SharedFolderDevice:
    18781878        {
    1879 #if 0 /* not yet working */
    18801879            SumLed.u32 |= readAndClearLed(mapSharedFolderLed);
    1881 #endif
    18821880            break;
    18831881        }
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r4021 r4031  
    6666    /** Our HGCM connector interface. */
    6767    PDMIHGCMCONNECTOR           HGCMConnector;
    68 
    69     struct
    70     {
    71         /** The LED. */
    72         PDMLED                              Led;
    73         /** The LED ports. */
    74         PDMILEDPORTS                        ILeds;
    75         /** Partner of ILeds. */
    76         HCPTRTYPE(PPDMILEDCONNECTORS)       pLedsConnector;
    77     } SharedFolders;
    78 
    7968#endif
    8069} DRVMAINVMMDEV, *PDRVMAINVMMDEV;
     
    475464            return &pDrv->HGCMConnector;
    476465#endif
    477         case PDMINTERFACE_LED_PORTS:
    478             /* Currently only for shared folders */
    479             return &pDrv->SharedFolders.ILeds;
    480466        default:
    481467            return NULL;
    482468    }
    483 }
    484 
    485 /**
    486  * Gets the pointer to the status LED of a unit.
    487  *
    488  * @returns VBox status code.
    489  * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    490  * @param   iLUN            The unit which status LED we desire.
    491  * @param   ppLed           Where to store the LED pointer.
    492  */
    493 static DECLCALLBACK(int) vmmdevQueryStatusLed(PPDMILEDPORTS pInterface, unsigned iLUN, PPDMLED *ppLed)
    494 {
    495     PDRVMAINVMMDEV pDrv = PDMIVMMDEVCONNECTOR_2_MAINVMMDEV(pInterface);
    496     if (iLUN == 0)
    497     {
    498         *ppLed = &pDrv->SharedFolders.Led;
    499         return VINF_SUCCESS;
    500     }
    501     return VERR_PDM_LUN_NOT_FOUND;
    502469}
    503470
     
    580547    pData->Connector.pfnQueryVisibleRegion            = vmmdevQueryVisibleRegion;
    581548
    582     pData->SharedFolders.Led.u32Magic                 = PDMLED_MAGIC;
    583     /* ILeds */
    584     pData->SharedFolders.ILeds.pfnQueryStatusLed      = vmmdevQueryStatusLed;
    585 
    586 
    587549#ifdef VBOX_HGCM
    588550    pData->HGCMConnector.pfnConnect                   = iface_hgcmConnect;
     
    629591    if (VBOX_SUCCESS(rc))
    630592    {
    631         PPDMIBASE pBase;
    632 
    633593        LogRel(("Shared Folders service loaded.\n"));
    634 #if 0
    635         /*
    636          * Attach status driver (optional).
    637          */
    638         rc = PDMDrvHlpDriverAttach(pDrvIns, PDM_STATUS_LUN, &pDrvIns->IBase, &pBase, "Status Port");
    639         if (VBOX_SUCCESS(rc))
    640             pData->SharedFolders.pLedsConnector = (PPDMILEDCONNECTORS)
    641                 pBase->pfnQueryInterface(pBase, PDMINTERFACE_LED_CONNECTORS);
    642         else if (rc != VERR_PDM_NO_ATTACHED_DRIVER)
    643         {
    644             AssertMsgFailed(("Failed to attach to status driver. rc=%Vrc\n", rc));
    645             return rc;
    646         }
    647 #endif
    648594    }
    649595    else
Note: See TracChangeset for help on using the changeset viewer.

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