VirtualBox

忽略:
時間撮記:
2015-12-14 下午02:04:37 (9 年 以前)
作者:
vboxsync
訊息:

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.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-client/USBDeviceImpl.cpp

    r53297 r59117  
    8787    unconst(mData.address) = Utf8Str(tmp);
    8888
     89    hrc = aUSBDevice->COMGETTER(Backend)(bptr);
     90    ComAssertComRCRet(hrc, hrc);
     91    unconst(mData.backend) = Utf8Str(tmp);
     92
    8993    hrc = aUSBDevice->COMGETTER(Port)(&unconst(mData.port));
    9094    ComAssertComRCRet(hrc, hrc);
     
    137141
    138142    unconst(mData.address).setNull();
     143    unconst(mData.backend).setNull();
    139144
    140145    unconst(mData.port) = 0;
     
    306311}
    307312
     313/**
     314 * Returns the device specific backend.
     315 *
     316 * @returns COM status code
     317 * @param   aBackend          Where to put the return string.
     318 */
     319HRESULT OUSBDevice::getBackend(com::Utf8Str &aBackend)
     320{
     321    /* this is const, no need to lock */
     322    aBackend = mData.backend;
     323
     324    return S_OK;
     325}
     326
    308327// private methods
    309328/////////////////////////////////////////////////////////////////////////////
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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