Changeset 32299 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Sep 7, 2010 9:25:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstHostHardwareLinux.cpp
r32262 r32299 91 91 } 92 92 #ifdef VBOX_USB_WITH_SYSFS 93 V BoxMainUSBDeviceInfo deviceInfo;94 V BoxMainUSBDevInfoInit(&deviceInfo);95 rc = USB DevInfoUpdateDevices(&deviceInfo);93 VECTOR_OBJ(USBDeviceInfo) vecDevInfo; 94 VEC_INIT_OBJ(&vecDevInfo, USBDeviceInfo, USBDevInfoCleanup); 95 rc = USBSysfsEnumerateHostDevices(&vecDevInfo); 96 96 if (RT_FAILURE(rc)) 97 97 { … … 102 102 RTPrintf ("Listing USB devices detected:\n"); 103 103 USBDeviceInfo *pInfo; 104 VEC_FOR_EACH(& deviceInfo.mvecDevInfo, USBDeviceInfo, pInfo)104 VEC_FOR_EACH(&vecDevInfo, USBDeviceInfo, pInfo) 105 105 { 106 106 char szProduct[1024]; … … 146 146 } 147 147 } 148 VEC_CLEANUP_OBJ(&vecDevInfo); 148 149 VBoxMainHotplugWaiter waiter; 149 150 RTPrintf ("Waiting for a hotplug event for five seconds...\n");
Note:
See TracChangeset
for help on using the changeset viewer.