Changeset 58158 in vbox for trunk/src/VBox/Devices/USB
- Timestamp:
- Oct 9, 2015 5:25:13 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103266
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.