VirtualBox

Ignore:
Timestamp:
Dec 14, 2015 2:04:37 PM (9 years ago)
Author:
vboxsync
Message:

USB,Main: Rework USBProxyService. Split it into a USBProxyService and USBProxyBackend class, USBProxyService can use multiple USBProxyBackend instances as sources for USB devices to attach to a VM which will be used for USB/IP support. Change the PDM USB API to contain a backend parameter instead of a remote flag to indicate the USB backend to use for the given device.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/USBProxyBackendWindows.cpp

    r59116 r59117  
    5050 * @returns S_OK on success and non-fatal failures, some COM error otherwise.
    5151 */
    52 HRESULT USBProxyServiceWindows::init(void)
     52int USBProxyServiceWindows::init(void)
    5353{
    5454    /*
     
    5656     */
    5757    mhEventInterrupt = CreateEvent(NULL, FALSE, FALSE, NULL);
    58     AssertReturn(mhEventInterrupt != INVALID_HANDLE_VALUE, E_FAIL);
     58    AssertReturn(mhEventInterrupt != INVALID_HANDLE_VALUE, VERR_OUT_OF_RESOURCES);
    5959
    6060    /*
     
    7171        {
    7272            LogFlowThisFunc(("returns successfully\n"));
    73             return S_OK;
     73            return VINF_SUCCESS;
    7474        }
    7575
     
    8181
    8282    LogFlowThisFunc(("returns failure!!! (rc=%Rrc)\n", rc));
    83     mLastError = rc;
    84     return S_OK;
     83    return rc;
    8584}
    8685
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