From 3820ff51d9d7f7875d582b65877c589071b4051f Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 24 Dec 2011 13:42:15 +0100 Subject: usbredirparser: Add usbredirparser_caps_set_cap helper Signed-off-by: Hans de Goede --- usbredirparser/usbredirparser.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'usbredirparser/usbredirparser.h') diff --git a/usbredirparser/usbredirparser.h b/usbredirparser/usbredirparser.h index e2f5ec7..620c86d 100644 --- a/usbredirparser/usbredirparser.h +++ b/usbredirparser/usbredirparser.h @@ -168,6 +168,11 @@ struct usbredirparser { usbredirparser_init */ struct usbredirparser *usbredirparser_create(void); +/* Set capability cap in the USB_REDIR_CAPS_SIZE sized caps array, + this is a helper function to set capabilities in the caps array + passed to usbredirparser_init(). */ +void usbredirparser_caps_set_cap(uint32_t *caps, int cap); + /* Init the parser, this will queue an initial usb_redir_hello packet, sending the version and caps to the peer, as well as configure the parsing according to the passed in flags. */ -- cgit v1.2.3