Changeset 65539 in vbox for trunk/src/VBox/Main/src-server/freebsd/USBProxyBackendFreeBSD.cpp
- Timestamp:
- Jan 31, 2017 12:30:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/freebsd/USBProxyBackendFreeBSD.cpp
r62485 r65539 151 151 152 152 return VINF_SUCCESS; 153 } 154 155 156 bool USBProxyBackendFreeBSD::isFakeUpdateRequired() 157 { 158 return true; 153 159 } 154 160 … … 271 277 } 272 278 273 pDevice->enmState = USBDEVICESTATE_U NUSED;279 pDevice->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE; 274 280 pDevice->bBus = UsbDevInfo.udi_bus; 281 pDevice->bPort = UsbDevInfo.udi_hubport; 275 282 pDevice->bDeviceClass = UsbDevInfo.udi_class; 276 283 pDevice->bDeviceSubClass = UsbDevInfo.udi_subclass; … … 293 300 break; 294 301 case USB_SPEED_SUPER: 302 pDevice->enmSpeed = USBDEVICESPEED_SUPER; 303 break; 295 304 case USB_SPEED_VARIABLE: 305 pDevice->enmSpeed = USBDEVICESPEED_VARIABLE; 306 break; 296 307 default: 297 308 pDevice->enmSpeed = USBDEVICESPEED_UNKNOWN; 309 break; 298 310 } 299 311 300 312 if (UsbDevInfo.udi_vendor[0] != '\0') 301 313 { 314 USBLibPurgeEncoding(UsbDevInfo.udi_vendor); 302 315 pDevice->pszManufacturer = RTStrDupN(UsbDevInfo.udi_vendor, sizeof(UsbDevInfo.udi_vendor)); 303 USBLibPurgeEncoding(pDevice->pszManufacturer);304 316 } 305 317 306 318 if (UsbDevInfo.udi_product[0] != '\0') 307 319 { 320 USBLibPurgeEncoding(UsbDevInfo.udi_product); 308 321 pDevice->pszProduct = RTStrDupN(UsbDevInfo.udi_product, sizeof(UsbDevInfo.udi_product)); 309 USBLibPurgeEncoding(pDevice->pszProduct);310 322 } 311 323 312 324 if (UsbDevInfo.udi_serial[0] != '\0') 313 325 { 326 USBLibPurgeEncoding(UsbDevInfo.udi_serial); 314 327 pDevice->pszSerialNumber = RTStrDupN(UsbDevInfo.udi_serial, sizeof(UsbDevInfo.udi_serial)); 315 USBLibPurgeEncoding(pDevice->pszSerialNumber); 316 pDevice->u64SerialHash = USBLibHashSerial(pDevice->pszSerialNumber); 328 pDevice->u64SerialHash = USBLibHashSerial(UsbDevInfo.udi_serial); 317 329 } 318 330 rc = ioctl(FileUsb, USB_GET_PLUGTIME, &PlugTime); … … 322 334 pDevice->pszAddress = RTStrDup(pszDevicePath); 323 335 pDevice->pszBackend = RTStrDup("host"); 324 pDevice->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE;325 336 326 337 usbLogDevice(pDevice); … … 338 349 return pDevices; 339 350 } 340
Note:
See TracChangeset
for help on using the changeset viewer.