VirtualBox

Ignore:
Timestamp:
Mar 18, 2016 10:51:02 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106086
Message:

Main,VBoxManage: Add API to IHost for adding and removing USB device sources in addition to the default host one (only USB/IP backend supported so far which will be used in the future for automatic USB testing). Add support for it in VBoxManage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/USBProxyBackendDarwin.cpp

    r60068 r60089  
    3939 * Initialize data members.
    4040 */
    41 USBProxyBackendDarwin::USBProxyBackendDarwin(USBProxyService *aUsbProxyService)
    42     : USBProxyBackend(aUsbProxyService), mServiceRunLoopRef(NULL), mNotifyOpaque(NULL), mWaitABitNextTime(false), mUSBLibInitialized(false)
    43 {
    44     LogFlowThisFunc(("aUsbProxyService=%p\n", aUsbProxyService));
    45 }
    46 
     41USBProxyBackendDarwin::USBProxyBackendDarwin()
     42    : USBProxyBackend(), mServiceRunLoopRef(NULL), mNotifyOpaque(NULL), mWaitABitNextTime(false), mUSBLibInitialized(false)
     43{
     44}
     45
     46USBProxyBackendDarwin::~USBProxyBackendDarwin()
     47{
     48}
    4749
    4850/**
     
    5153 * @returns VBox status code.
    5254 */
    53 int USBProxyBackendDarwin::init(void)
    54 {
     55int USBProxyBackendDarwin::init(USBProxyService *pUsbProxyService, const com::Utf8Str &strId, const com::Utf8Str &strAddress)
     56{
     57    USBProxyBackend::init(pUsbProxyService, strId, strAddress);
     58
    5559    /*
    5660     * Initialize the USB library.
     
    7377 * Stop all service threads and free the device chain.
    7478 */
    75 USBProxyBackendDarwin::~USBProxyBackendDarwin()
     79void USBProxyBackendDarwin::uninit()
    7680{
    7781    LogFlowThisFunc(("\n"));
     
    9195        mUSBLibInitialized = false;
    9296    }
     97
     98    USBProxyBackend::uninit();
    9399}
    94100
     
    155161        USBLibRemoveFilter(aDevice->i_getBackendUserData());
    156162    aDevice->i_setBackendUserData(NULL);
     163    USBProxyBackend::captureDeviceCompleted(aDevice, aSuccess);
    157164}
    158165
     
    209216        USBLibRemoveFilter(aDevice->i_getBackendUserData());
    210217    aDevice->i_setBackendUserData(NULL);
     218    USBProxyBackend::releaseDeviceCompleted(aDevice, aSuccess);
    211219}
    212220
Note: See TracChangeset for help on using the changeset viewer.

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