VirtualBox

儲存庫 vbox 的更動 12297


忽略:
時間撮記:
2008-9-9 下午01:59:00 (16 年 以前)
作者:
vboxsync
訊息:

Version 2 of remote USB protocol.

位置:
trunk
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/VBox/vrdpapi.h

    r11372 r12297  
    104104 */
    105105
    106 /* The version of Remote USB Protocol. */
    107 #define VRDP_USB_VERSION (1)
     106/* The initial version 1. */
     107#define VRDP_USB_VERSION_1 (1)
     108/* Version 2: look for VRDP_USB_VERSION_2 comments in the code. */
     109#define VRDP_USB_VERSION_2 (2)
     110
     111/* The default VRDP server version of Remote USB Protocol. */
     112#define VRDP_USB_VERSION VRDP_USB_VERSION_2
     113
    108114
    109115/** USB backend operations. */
     
    323329#define VRDP_USB_XFER_DNR   (2)
    324330#define VRDP_USB_XFER_CRC   (3)
     331/* VRDP_USB_VERSION_2: New error codes. */
     332#define VRDP_USB_XFER_BS    (4)
     333#define VRDP_USB_XFER_DTM   (5)
     334#define VRDP_USB_XFER_PCF   (6)
     335#define VRDP_USB_XFER_UPID  (7)
     336#define VRDP_USB_XFER_DO    (8)
     337#define VRDP_USB_XFER_DU    (9)
     338#define VRDP_USB_XFER_BO    (10)
     339#define VRDP_USB_XFER_BU    (11)
     340#define VRDP_USB_XFER_ERR   (12) /* VBox protocol error. */
    325341
    326342#define VRDP_USB_REAP_FLAG_CONTINUED (0x0)
     
    440456#define VRDP_USB_CAPS_FLAG_ASYNC    (0x0)
    441457#define VRDP_USB_CAPS_FLAG_POLL     (0x1)
     458/* VRDP_USB_VERSION_2: New flag. */
     459#define VRDP_USB_CAPS2_FLAG_VERSION (0x2) /* The client is negotiating the protocol version. */
     460
    442461
    443462#define VRDP_USB_CAPS_VALID_FLAGS   (VRDP_USB_CAPS_FLAG_POLL)
     463/* VRDP_USB_VERSION_2: A set of valid flags. */
     464#define VRDP_USB_CAPS2_VALID_FLAGS  (VRDP_USB_CAPS_FLAG_POLL | VRDP_USB_CAPS2_FLAG_VERSION)
    444465
    445466typedef struct _VRDPUSBREQNEGOTIATERET
     
    447468    uint8_t flags;
    448469} VRDPUSBREQNEGOTIATERET;
     470
     471typedef struct _VRDPUSBREQNEGOTIATERET_2
     472{
     473    uint8_t flags;
     474    uint32_t u32Version; /* This field presents only if the VRDP_USB_CAPS2_FLAG_VERSION flag is set. */
     475} VRDPUSBREQNEGOTIATERET_2;
    449476#pragma pack()
    450477
  • trunk/src/VBox/Main/include/RemoteUSBBackend.h

    r8155 r12297  
    8080        int saveDeviceList (const void *pvList, uint32_t cbList);
    8181       
    82         int negotiateResponse (const VRDPUSBREQNEGOTIATERET *pret);
     82        int negotiateResponse (const VRDPUSBREQNEGOTIATERET *pret, uint32_t cbRet);
    8383
    8484        int reapURB (const void *pvBody, uint32_t cbBody);
     
    130130       
    131131        Guid aGuids[VRDP_MAX_USB_DEVICES_PER_CLIENT];
     132
     133        /* VRDP_USB_VERSION_2: the client version. */
     134        uint32_t mClientVersion;
    132135};
    133136
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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