VirtualBox

Changeset 12297 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Sep 9, 2008 1:59:00 PM (16 years ago)
Author:
vboxsync
Message:

Version 2 of remote USB protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
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