Changeset 60606 in vbox for trunk/src/VBox/Main/src-server/freebsd/USBProxyBackendFreeBSD.cpp
- Timestamp:
- Apr 20, 2016 4:09:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/freebsd/USBProxyBackendFreeBSD.cpp
r60156 r60606 60 60 * Initialize data members. 61 61 */ 62 USBProxyBackendFreeBSD::USBProxyBackendFreeBSD(USBProxyService *aUsbProxyService, const com::Utf8Str &strId) 63 : USBProxyBackend(aUsbProxyService, strId) 64 { 65 LogFlowThisFunc(("aUsbProxyService=%p\n", aUsbProxyService)); 66 } 67 62 USBProxyBackendFreeBSD::USBProxyBackendFreeBSD() 63 : USBProxyBackend(), mNotifyEventSem(NIL_RTSEMEVENT) 64 { 65 LogFlowThisFunc(("\n")); 66 } 67 68 USBProxyBackendFreeBSD::~USBProxyBackendFreeBSD() 69 { 70 LogFlowThisFunc(("\n")); 71 } 68 72 69 73 /** … … 72 76 * @returns S_OK on success and non-fatal failures, some COM error otherwise. 73 77 */ 74 int USBProxyBackendFreeBSD::init(USBProxyService *pUsbProxyService, const com::Utf8Str &strId, const com::Utf8Str &strAddress s)78 int USBProxyBackendFreeBSD::init(USBProxyService *pUsbProxyService, const com::Utf8Str &strId, const com::Utf8Str &strAddress) 75 79 { 76 80 USBProxyBackend::init(pUsbProxyService, strId, strAddress); … … 96 100 * Stop all service threads and free the device chain. 97 101 */ 98 USBProxyBackendFreeBSD::~USBProxyBackendFreeBSD()102 void USBProxyBackendFreeBSD::uninit() 99 103 { 100 104 LogFlowThisFunc(("\n")); … … 108 112 RTSemEventDestroy(mNotifyEventSem); 109 113 mNotifyEventSem = NULL; 114 USBProxyBackend::uninit(); 110 115 } 111 116 … … 236 241 rc = RTStrAPrintf(&pszDevicePath, "/dev/%s%d.%d", USB_GENERIC_NAME, iBus, iAddr); 237 242 if (RT_FAILURE(rc)) 238 {239 mLastError = rc;240 243 break; 241 }242 244 243 245 LogFlowFunc((": Opening %s\n", pszDevicePath)); … … 246 248 if (FileUsb < 0) 247 249 { 248 if ( (errno != ENOENT)249 && (errno != EACCES))250 mLastError = RTErrConvertFromErrno(errno);251 252 250 RTStrFree(pszDevicePath); 253 251 … … 277 275 { 278 276 LogFlowFunc((": Error querying device info rc=%Rrc\n", RTErrConvertFromErrno(errno))); 279 mLastError = RTErrConvertFromErrno(errno);280 277 close(FileUsb); 281 278 RTStrFree(pszDevicePath); … … 289 286 if (!pDevice) 290 287 { 291 mLastError = VERR_NO_MEMORY;292 288 close(FileUsb); 293 289 RTStrFree(pszDevicePath);
Note:
See TracChangeset
for help on using the changeset viewer.