- Timestamp:
- Oct 9, 2015 5:25:13 PM (9 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/USBProxyDevice.h
r56292 r58158 188 188 typedef struct USBPROXYDEV 189 189 { 190 #ifdef RDESKTOP191 /** The VUSB device structure - must be the first structure member. */192 VUSBDEV Dev;193 /** The next device in rdesktop-vrdp's linked list */194 PUSBPROXYDEV pNext;195 /** The previous device in rdesktop-vrdp's linked list */196 PUSBPROXYDEV pPrev;197 /** The vrdp device ID */198 uint32_t devid;199 /** Linked list of in-flight URBs */200 PVUSBURB pUrbs;201 #endif202 190 /** The device descriptor. */ 203 191 VUSBDESCDEVICE DevDesc; … … 235 223 bool fDetached; 236 224 /** Backend specific data, the size is stored in pOps::cbBackend. */ 237 void *pvInstanceDataR3; 225 void *pvInstanceDataR3; 226 227 #ifdef RDESKTOP 228 /** @name VRDP client (rdesktop) related members. 229 * @{ */ 230 /** The vrdp device ID. */ 231 uint32_t idVrdp; 232 /** The VUSB device structure - must be the first structure member. */ 233 VUSBDEV Dev; 234 /** The next device in rdesktop-vrdp's linked list. */ 235 PUSBPROXYDEV pNext; 236 /** The previous device in rdesktop-vrdp's linked list. */ 237 PUSBPROXYDEV pPrev; 238 /** Linked list of in-flight URBs */ 239 PVUSBURB pUrbs; 240 /** @} */ 241 #endif 238 242 } USBPROXYDEV; 239 243 … … 243 247 #define USBPROXYDEV_2_DATA(a_pProxyDev, a_Type) ( (a_Type)(a_pProxyDev)->pvInstanceDataR3 ) 244 248 245 static inline char *usbProxyGetName(PUSBPROXYDEV pProxyDev) 249 250 DECLINLINE(const char *) usbProxyGetName(PUSBPROXYDEV pProxyDev) 246 251 { 247 252 #ifndef RDESKTOP … … 253 258 254 259 #ifdef RDESKTOP 255 static inline PUSBPROXYDEVusbProxyFromVusbDev(PVUSBDEV pDev)256 { 257 return (PUSBPROXYDEV)pDev;260 DECLINLINE(PUSBPROXYDEV) usbProxyFromVusbDev(PVUSBDEV pDev) 261 { 262 return RT_FROM_MEMBER(pDev, USBPROXYDEV, Dev); 258 263 } 259 264 #endif -
trunk/src/VBox/RDP/client-1.8.3/vrdp/rdpusb.c
r55551 r58158 376 376 PUSBPROXYDEV proxy = g_proxies; 377 377 378 while (proxy && proxy-> devid!= devid)378 while (proxy && proxy->idVrdp != devid) 379 379 { 380 380 proxy = proxy->pNext; … … 409 409 410 410 s = rdpusb_init_packet(14 + datalen, RDPUSB_REQ_REAP_URB); 411 out_uint32_le(s, proxy-> devid);411 out_uint32_le(s, proxy->idVrdp); 412 412 out_uint8(s, VRDP_USB_REAP_FLAG_LAST); 413 413 out_uint8(s, pUrb->enmStatus); … … 509 509 510 510 proxy->Dev.pszName = "Remote device"; 511 proxy-> devid= devid;511 proxy->idVrdp = devid; 512 512 513 513 for (pDevice = g_pUsbDevices; pDevice; pDevice = pDevice->pNext)
Note:
See TracChangeset
for help on using the changeset viewer.