VirtualBox

Changeset 3853 in vbox for trunk/src


Ignore:
Timestamp:
Jul 25, 2007 7:24:30 PM (17 years ago)
Author:
vboxsync
Message:

Some more USB sketching...

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Builtins.cpp

    r3670 r3853  
    237237}
    238238
     239
     240#ifdef VBOX_WITH_USB
     241/**
     242 * Register builtin USB device.
     243 *
     244 * @returns VBox status code.
     245 * @param   pCallbacks      Pointer to the callback table.
     246 * @param   u32Version      VBox version number.
     247 */
     248extern "C" DECLEXPORT(int) VBoxUSBRegister(PCPDMUSBREGCB pCallbacks, uint32_t u32Version)
     249{
     250    int rc = pCallbacks->pfnRegister(pCallbacks, &g_UsbDevProxy);
     251    if (VBOX_FAILURE(rc))
     252        return rc;
     253
     254    return VINF_SUCCESS;
     255}
     256#endif
  • trunk/src/VBox/Devices/Builtins.h

    r3648 r3853  
    7878extern const PDMDRVREG g_DrvHostParallel;
    7979
     80#ifdef VBOX_WITH_USB
     81extern const PDMUSBREG g_UsbDevProxy;
     82#endif
     83
    8084__END_DECLS
    8185
  • trunk/src/VBox/VMM/PDMDriver.cpp

    r3852 r3853  
    10121012             pDrvIns->pDrvReg->szDriverName, pDrvIns->iInstance, pvReservedIn, ppvReservedHlp));
    10131013
    1014 //    int rc = PDMUSBRegisterHub(pDrvIns->Internal.s.pVM, pvReservedIn, ppvReservedHlp);
    1015     int rc = VERR_NOT_IMPLEMENTED;
     1014/// @todo    int rc = PDMUSBRegisterHub(pDrvIns->Internal.s.pVM, pvReservedIn, ppvReservedHlp);
     1015    int rc = VINF_SUCCESS;
    10161016
    10171017    LogFlow(("pdmR3DrvHlp_USBRegisterHub: caller='%s'/%d: returns %Vrc\n", pDrvIns->pDrvReg->szDriverName, pDrvIns->iInstance, rc));
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