diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-02-13 15:25:34 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-02-14 18:56:08 +0100 |
commit | 952d838efab53b2817a2783aa9ee31f6485a1a76 (patch) | |
tree | 6b764c176571c89faa53b9f0a3fac471fc2a9818 /usbredirhost/usbredirhost.h | |
parent | 79e2330bc5c7127d9bfaba3291a3aa3630fbd253 (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 'usbredirhost/usbredirhost.h')
-rw-r--r-- | usbredirhost/usbredirhost.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usbredirhost/usbredirhost.h b/usbredirhost/usbredirhost.h index 2439d88..87bcf54 100644 --- a/usbredirhost/usbredirhost.h +++ b/usbredirhost/usbredirhost.h @@ -118,6 +118,11 @@ int usbredirhost_write_guest_data(struct usbredirhost *host); passed to write_guest_data_func when done with this buffer. */ void usbredirhost_free_write_buffer(struct usbredirhost *host, uint8_t *data); +/* Get the *usbredir-guest's* filter, if any. If there is no filter, + rules is set to NULL and rules_count to 0. */ +void usbredirhost_get_guest_filter(struct usbredirhost *host, + struct usbredirfilter_rule **rules_ret, int *rules_count_ret); + /* Get device and config descriptors from the USB device dev, and call usbredirfilter_check with the passed in filter rules and the needed info from the descriptors, flags gets passed to usbredirfilter_check unmodified. |