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/win/USBProxyBackendWindows.cpp

    r60068 r60089  
    3838 * Initialize data members.
    3939 */
    40 USBProxyBackendWindows::USBProxyBackendWindows(USBProxyService *aUsbProxyService)
    41     : USBProxyBackend(aUsbProxyService), mhEventInterrupt(INVALID_HANDLE_VALUE)
    42 {
    43     LogFlowThisFunc(("aUsbProxyService=%p\n", aUsbProxyService));
    44 }
    45 
     40USBProxyBackendWindows::USBProxyBackendWindows()
     41    : USBProxyBackend(), mhEventInterrupt(INVALID_HANDLE_VALUE)
     42{
     43    LogFlowThisFunc(("\n"));
     44}
     45
     46USBProxyBackendWindows::~USBProxyBackendWindows()
     47{
     48}
    4649
    4750/**
     
    5053 * @returns S_OK on success and non-fatal failures, some COM error otherwise.
    5154 */
    52 int USBProxyBackendWindows::init(void)
    53 {
     55int USBProxyBackendWindows::init(USBProxyService *aUsbProxyService, const com::Utf8Str &strId, const com::Utf8Str &strAddress)
     56{
     57    USBProxyBackend::init(aUsbProxyService, strId, strAddress);
     58
    5459    /*
    5560     * Create the semaphore (considered fatal).
     
    8893 * Stop all service threads and free the device chain.
    8994 */
    90 USBProxyBackendWindows::~USBProxyBackendWindows()
     95void USBProxyBackendWindows::uninit()
    9196{
    9297    LogFlowThisFunc(("\n"));
     
    107112    int rc = USBLibTerm();
    108113    AssertRC(rc);
     114    USBProxyBackend::uninit();
    109115}
    110116
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