Changeset 8539 in vbox
- Timestamp:
- May 2, 2008 5:02:10 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30444
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/usb.h
r8155 r8539 34 34 35 35 __BEGIN_DECLS 36 37 #ifdef USBDEVICE_WITH_EVERYTHING 36 38 37 39 /** … … 124 126 typedef const USBCONFIG *PCUSBCONFIG; 125 127 128 #endif /* USBDEVICE_WITH_EVERYTHING */ 129 126 130 127 131 /** … … 173 177 typedef struct USBDEVICE 174 178 { 179 /** If linked, this is the pointer to the next device in the list. */ 180 struct USBDEVICE *pNext; 181 /** If linked doubly, this is the pointer to the prev device in the list. */ 182 struct USBDEVICE *pPrev; 183 /** Manufacturer string. */ 184 const char *pszManufacturer; 185 /** Product string. */ 186 const char *pszProduct; 187 /** Serial number string. */ 188 const char *pszSerialNumber; 189 /** The address of the device. */ 190 const char *pszAddress; 191 192 /** Vendor ID. */ 193 uint16_t idVendor; 194 /** Product ID. */ 195 uint16_t idProduct; 196 /** Revision, integer part. */ 197 uint16_t bcdDevice; 175 198 /** USB version number. */ 176 199 uint16_t bcdUSB; … … 181 204 /** Device protocol */ 182 205 uint8_t bDeviceProtocol; 183 /** Vendor ID. */184 uint16_t idVendor;185 /** Product ID. */186 uint16_t idProduct;187 /** Revision, integer part. */188 uint16_t bcdDevice;189 /** Manufacturer string. */190 const char *pszManufacturer;191 /** Product string. */192 const char *pszProduct;193 /** Serial number string. */194 const char *pszSerialNumber;195 /** Serial hash. */196 uint64_t u64SerialHash;197 206 /** Number of configurations. */ 198 207 uint8_t bNumConfigurations; 199 /** Pointer to an array of configurations. */200 PUSBCONFIG paConfigurations;201 208 /** The device state. */ 202 209 USBDEVICESTATE enmState; 203 210 /** The device speed. */ 204 211 USBDEVICESPEED enmSpeed; 205 /** The address of the device. */ 206 const char *pszAddress; 207 212 /** Serial hash. */ 213 uint64_t u64SerialHash; 208 214 /** The USB Bus number. */ 209 215 uint8_t bBus; 216 /** The port number. */ 217 uint8_t bPort; 218 #if defined(RT_OS_LINUX) 219 /** Device number. */ 220 uint8_t bDevNum; 221 #endif 222 #ifdef USBDEVICE_WITH_EVERYTHING 223 /** Parent device number. */ 224 uint8_t bDevNumParent; 210 225 /** The level in topologly for this bus. */ 211 226 uint8_t bLevel; 212 /** Device number. */213 uint8_t bDevNum;214 /** Parent device number. */215 uint8_t bDevNumParent;216 /** The port number. */217 uint8_t bPort;218 227 /** Number of devices on this level. */ 219 228 uint8_t bNumDevices; 220 229 /** Maximum number of children. */ 221 230 uint8_t bMaxChildren; 222 223 /** If linked, this is the pointer to the next device in the list. */ 224 struct USBDEVICE *pNext; 225 /** If linked doubly, this is the pointer to the prev device in the list. */ 226 struct USBDEVICE *pPrev; 231 /** Pointer to an array of configurations. */ 232 PUSBCONFIG paConfigurations; 233 #endif 227 234 } USBDEVICE; 228 235 /** Pointer to a USB device. */ -
trunk/src/VBox/Frontends/VBoxBFE/Makefile.kmk
r8155 r8539 88 88 89 89 # USB Support 90 if neq ($(filter-out os2 darwin,$(BUILD_TARGET)),)90 if1of ($(BUILD_TARGET), l4 win) 91 91 VBoxBFE_DEFS += VBOXBFE_WITH_USB 92 92 VBoxBFE_SOURCES += \ -
trunk/src/VBox/Frontends/VBoxBFE/USBProxyService.cpp
r8155 r8539 306 306 } 307 307 308 309 #ifdef USBDEVICE_WITH_EVERYTHING 308 310 /*static*/ void USBProxyService::freeInterfaceMembers (PUSBINTERFACE pIf, unsigned cIfs) 309 311 { … … 326 328 } 327 329 } 330 #endif 331 328 332 329 333 /*static*/ void USBProxyService::freeDevice (PUSBDEVICE pDevice) 330 334 { 335 #ifdef USBDEVICE_WITH_EVERYTHING 331 336 PUSBCONFIG pCfg = pDevice->paConfigurations; 332 337 unsigned cCfgs = pDevice->bNumConfigurations; … … 346 351 RTMemFree (pDevice->paConfigurations); 347 352 pDevice->paConfigurations = NULL; 353 #endif 348 354 349 355 RTStrFree ((char *)pDevice->pszManufacturer); -
trunk/src/VBox/Frontends/VBoxBFE/USBProxyService.h
r8155 r8539 140 140 141 141 public: 142 #ifdef USBDEVICE_WITH_EVERYTHING 142 143 /** 143 144 * Free all the members of a USB interface returned by getDevice(). … … 147 148 */ 148 149 static void freeInterfaceMembers (PUSBINTERFACE pIf, unsigned cIfs); 150 #endif 149 151 150 152 /** -
trunk/src/VBox/Frontends/VBoxBFE/USBProxyServiceLinux.cpp
r8155 r8539 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * VBox frontends: Basic Frontend (BFE): 4 4 * Implementation of USBProxyServiceLinux class 5 * 6 * WARNING: This file needs to be resynced and is currently disabled. 5 7 */ 6 8 -
trunk/src/VBox/Main/include/USBDeviceImpl.h
r8155 r8539 25 25 #include "VirtualBoxBase.h" 26 26 #include "Collection.h" 27 #include "Logging.h" 27 28 28 29 … … 114 115 if (!aDevice) 115 116 return E_POINTER; 117 RTLogPrintf("%Rfn: id=%RTuuid\n", __PRETTY_FUNCTION__, idToFind.raw()); 116 118 117 119 *aDevice = NULL; … … 122 124 Guid id; 123 125 (*it)->COMGETTER(Id) (id.asOutParam()); 126 RTLogPrintf("%Rfn: it=%RTuuid\n", __PRETTY_FUNCTION__, id.raw()); 124 127 if (id == idToFind) 125 128 found = *it; … … 128 131 129 132 if (!found) 133 { 134 RTLogPrintf("%Rfn: not found\n", __PRETTY_FUNCTION__); 130 135 return setError (E_INVALIDARG, OUSBDeviceCollection::tr ( 131 136 "Could not find a USB device with UUID {%s}"), 132 137 idToFind.toString().raw()); 138 } 133 139 134 140 return found.queryInterfaceTo (aDevice);
Note:
See TracChangeset
for help on using the changeset viewer.