VirtualBox

vbox的更動 32299 路徑 trunk/src/VBox/Main/testcase


忽略:
時間撮記:
2010-9-7 下午09:25:05 (14 年 以前)
作者:
vboxsync
訊息:

Main/USBProxyServiceLinux: move the implementation of the device enumeration code out of the class and into static C-like functions

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/testcase/tstHostHardwareLinux.cpp

    r32262 r32299  
    9191    }
    9292#ifdef VBOX_USB_WITH_SYSFS
    93     VBoxMainUSBDeviceInfo deviceInfo;
    94     VBoxMainUSBDevInfoInit(&deviceInfo);
    95     rc = USBDevInfoUpdateDevices(&deviceInfo);
     93    VECTOR_OBJ(USBDeviceInfo) vecDevInfo;
     94    VEC_INIT_OBJ(&vecDevInfo, USBDeviceInfo, USBDevInfoCleanup);
     95    rc = USBSysfsEnumerateHostDevices(&vecDevInfo);
    9696    if (RT_FAILURE(rc))
    9797    {
     
    102102    RTPrintf ("Listing USB devices detected:\n");
    103103    USBDeviceInfo *pInfo;
    104     VEC_FOR_EACH(&deviceInfo.mvecDevInfo, USBDeviceInfo, pInfo)
     104    VEC_FOR_EACH(&vecDevInfo, USBDeviceInfo, pInfo)
    105105    {
    106106        char szProduct[1024];
     
    146146        }
    147147    }
     148    VEC_CLEANUP_OBJ(&vecDevInfo);
    148149    VBoxMainHotplugWaiter waiter;
    149150    RTPrintf ("Waiting for a hotplug event for five seconds...\n");
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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