@@ -504,36 +504,36 @@ typedef int guac_user_put_handler(guac_user* user, guac_object* object,
504504 * instruction has been received from a user. This indicates that the user
505505 * has connected a USB device via WebUSB and it is available for redirection.
506506 *
507- * @param user
508- * The user that connected the USB device.
509- *
510507 * @param device_id
511- * The unique identifier for the USB device.
508+ * The unique identifier for the USB device. Required.
512509 *
513510 * @param vendor_id
514- * The vendor ID of the USB device.
511+ * The vendor ID of the USB device. Required.
515512 *
516513 * @param product_id
517- * The product ID of the USB device.
514+ * The product ID of the USB device. Required.
518515 *
519516 * @param device_name
520- * The human-readable name of the device.
517+ * The human-readable name of the device. Required (may be empty string).
521518 *
522519 * @param serial_number
523- * The serial number of the device, if available.
520+ * The serial number of the device. Optional (may be NULL or empty string
521+ * if not available).
524522 *
525523 * @param device_class
526- * The USB device class.
524+ * The USB device class. Required.
527525 *
528526 * @param device_subclass
529- * The USB device subclass.
527+ * The USB device subclass. Required.
530528 *
531529 * @param device_protocol
532- * The USB device protocol.
530+ * The USB device protocol. Required.
533531 *
534532 * @param interface_data
535- * Encoded string containing interface and endpoint information in the
536- * format: "iface_num:class:subclass:protocol:ep_num:dir:type:size,..."
533+ * Encoded string containing interface and endpoint information. Required.
534+ * Format: "ifaceNum:class:subclass:protocol:ep1Num:ep1Dir:ep1Type:ep1Size;ep2...,iface2..."
535+ * where multiple endpoints within an interface are separated by semicolons
536+ * and multiple interfaces are separated by commas.
537537 *
538538 * @return
539539 * Zero if the USB connect event was handled successfully, or non-zero if
@@ -556,7 +556,9 @@ typedef int guac_user_usbconnect_handler(guac_user* user, const char* device_id,
556556* The unique identifier for the USB device.
557557*
558558* @param endpoint_number
559- * The endpoint number the data originated from.
559+ * The USB endpoint number that the data originated from. Endpoint
560+ * numbers correspond to the endpoints defined in the device's
561+ * interface_data from the usbconnect instruction.
560562*
561563* @param data
562564* The base64-encoded USB data.
0 commit comments