summaryrefslogtreecommitdiff
path: root/usbredirparser/usbredirproto.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-02-13 15:25:34 +0100
committerHans de Goede <hdegoede@redhat.com>2012-02-14 18:56:08 +0100
commit952d838efab53b2817a2783aa9ee31f6485a1a76 (patch)
tree6b764c176571c89faa53b9f0a3fac471fc2a9818 /usbredirparser/usbredirproto.h
parent79e2330bc5c7127d9bfaba3291a3aa3630fbd253 (diff)
Add a usb_redir_filter_filter packet
Make this conditional on the same cap as device_reject, rename the cap to usb_redir_cap_filter. Rename device_reject to filter_reject to reflect that it is filtering related and that the the cap and packet names are consistent with each other. Also cleanup some related comments / docs. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'usbredirparser/usbredirproto.h')
-rw-r--r--usbredirparser/usbredirproto.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/usbredirparser/usbredirproto.h b/usbredirparser/usbredirproto.h
index 83d7932..d90ba4f 100644
--- a/usbredirparser/usbredirproto.h
+++ b/usbredirparser/usbredirproto.h
@@ -92,7 +92,8 @@ enum {
usb_redir_free_bulk_streams,
usb_redir_bulk_streams_status,
usb_redir_cancel_data_packet,
- usb_redir_device_reject,
+ usb_redir_filter_reject,
+ usb_redir_filter_filter,
/* Data packets */
usb_redir_control_packet = 100,
@@ -102,12 +103,12 @@ enum {
};
enum {
- /* USB 3 bulk streams are supported ? */
+ /* Supports USB 3 bulk streams */
usb_redir_cap_bulk_streams,
- /* The device_connect packet has the device_version_bcd field ? */
+ /* The device_connect packet has the device_version_bcd field */
usb_redir_cap_connect_device_version,
- /* Knows how to handle the usb_redir_device_reject packet ? */
- usb_redir_cap_reject_device,
+ /* Supports usb_redir_filter_reject and usb_redir_filter_filter pkts */
+ usb_redir_cap_filter,
};
/* Number of uint32_t-s needed to hold all (known) capabilities */
#define USB_REDIR_CAPS_SIZE 1