libusb.3 (748205a3703147c4587ea21e78bfdb84037df076) libusb.3 (cb0df9e86e5c433fa5827fe715cc95013e7a6da7)
1.\"
2.\" Copyright (c) 2009 Sylvestre Gallon
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 271 unchanged lines hidden (view full) ---

280.Fn libusb_get_device_descriptor "libusb_device *dev" "libusb_device_descriptor *desc"
281Get the USB device descriptor for the device
282.Fa dev.
283This is a non-blocking function.
284Returns 0 on success and a LIBUSB_ERROR code on
285failure.
286.Pp
287.Ft int
1.\"
2.\" Copyright (c) 2009 Sylvestre Gallon
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 271 unchanged lines hidden (view full) ---

280.Fn libusb_get_device_descriptor "libusb_device *dev" "libusb_device_descriptor *desc"
281Get the USB device descriptor for the device
282.Fa dev.
283This is a non-blocking function.
284Returns 0 on success and a LIBUSB_ERROR code on
285failure.
286.Pp
287.Ft int
288.Fn libsub_get_active_config_descriptor "libusb_device *dev" "struct libusb_config_descriptor **config"
288.Fn libusb_get_active_config_descriptor "libusb_device *dev" "struct libusb_config_descriptor **config"
289Get the USB configuration descriptor for the active configuration.
290Returns 0 on
291success, LIBUSB_ERROR_NOT_FOUND if the device is in
292an unconfigured state
293and a LIBUSB_ERROR code on error.
294.Pp
295.Ft int
296.Fn libusb_get_config_descriptor "libusb_device *dev" "uint8_t config_index" "libusb_config_descriptor **config"

--- 254 unchanged lines hidden ---
289Get the USB configuration descriptor for the active configuration.
290Returns 0 on
291success, LIBUSB_ERROR_NOT_FOUND if the device is in
292an unconfigured state
293and a LIBUSB_ERROR code on error.
294.Pp
295.Ft int
296.Fn libusb_get_config_descriptor "libusb_device *dev" "uint8_t config_index" "libusb_config_descriptor **config"

--- 254 unchanged lines hidden ---