VirtualBox

Changeset 58158 in vbox for trunk/src


Ignore:
Timestamp:
Oct 9, 2015 5:25:13 PM (9 years ago)
Author:
vboxsync
Message:

USBPROXYDEV: nits.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/USBProxyDevice.h

    r56292 r58158  
    188188typedef struct USBPROXYDEV
    189189{
    190 #ifdef RDESKTOP
    191     /** 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 #endif
    202190    /** The device descriptor. */
    203191    VUSBDESCDEVICE      DevDesc;
     
    235223    bool                fDetached;
    236224    /** 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
    238242} USBPROXYDEV;
    239243
     
    243247#define USBPROXYDEV_2_DATA(a_pProxyDev, a_Type)   ( (a_Type)(a_pProxyDev)->pvInstanceDataR3 )
    244248
    245 static inline char *usbProxyGetName(PUSBPROXYDEV pProxyDev)
     249
     250DECLINLINE(const char *) usbProxyGetName(PUSBPROXYDEV pProxyDev)
    246251{
    247252#ifndef RDESKTOP
     
    253258
    254259#ifdef RDESKTOP
    255 static inline PUSBPROXYDEV usbProxyFromVusbDev(PVUSBDEV pDev)
    256 {
    257     return (PUSBPROXYDEV)pDev;
     260DECLINLINE(PUSBPROXYDEV) usbProxyFromVusbDev(PVUSBDEV pDev)
     261{
     262    return RT_FROM_MEMBER(pDev, USBPROXYDEV, Dev);
    258263}
    259264#endif
  • trunk/src/VBox/RDP/client-1.8.3/vrdp/rdpusb.c

    r55551 r58158  
    376376        PUSBPROXYDEV proxy = g_proxies;
    377377
    378         while (proxy && proxy->devid != devid)
     378        while (proxy && proxy->idVrdp != devid)
    379379        {
    380380                proxy = proxy->pNext;
     
    409409
    410410                        s = rdpusb_init_packet(14 + datalen, RDPUSB_REQ_REAP_URB);
    411                         out_uint32_le(s, proxy->devid);
     411                        out_uint32_le(s, proxy->idVrdp);
    412412                        out_uint8(s, VRDP_USB_REAP_FLAG_LAST);
    413413                        out_uint8(s, pUrb->enmStatus);
     
    509509
    510510                        proxy->Dev.pszName = "Remote device";
    511                         proxy->devid = devid;
     511                        proxy->idVrdp = devid;
    512512
    513513                        for (pDevice = g_pUsbDevices; pDevice; pDevice = pDevice->pNext)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette