summaryrefslogtreecommitdiff
path: root/libusb/libusbi.h
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-04-17 12:57:49 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2020-04-17 12:57:49 -0700
commit9ececdb0ecbbb77edd5a40cb8914ddc54b77dea2 (patch)
tree5c2292b3a19147c4e8eeef710d2ad7f35b74dda9 /libusb/libusbi.h
parente1fcd8ac57b709f775b1e7b57262408e94cfa5d5 (diff)
downloadlibusb-9ececdb0ecbbb77edd5a40cb8914ddc54b77dea2.tar.gz
core: Kill the 'host_endian' argument for most functions
The 'host_endian' argument exists only for a special case in the Linux backend, that being when the device descriptor is read using usbfs rather than sysfs. It does not apply to any other descriptor types nor any other backends, so remove it. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r--libusb/libusbi.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h
index a0bb1b4..9d1528f 100644
--- a/libusb/libusbi.h
+++ b/libusb/libusbi.h
@@ -887,8 +887,7 @@ struct usbi_os_backend {
* return an error code.
*
* This function is expected to return the descriptor in bus-endian format
- * (LE). If it returns the multi-byte values in host-endian format,
- * set the host_endian output parameter to "1".
+ * (LE).
*
* Return:
* - 0 on success
@@ -896,7 +895,7 @@ struct usbi_os_backend {
* - another LIBUSB_ERROR code on other failure
*/
int (*get_active_config_descriptor)(struct libusb_device *device,
- unsigned char *buffer, size_t len, int *host_endian);
+ unsigned char *buffer, size_t len);
/* Get a specific configuration descriptor for a device.
*
@@ -914,14 +913,12 @@ struct usbi_os_backend {
* return an error code.
*
* This function is expected to return the descriptor in bus-endian format
- * (LE). If it returns the multi-byte values in host-endian format,
- * set the host_endian output parameter to "1".
+ * (LE).
*
* Return the length read on success or a LIBUSB_ERROR code on failure.
*/
int (*get_config_descriptor)(struct libusb_device *device,
- uint8_t config_index, unsigned char *buffer, size_t len,
- int *host_endian);
+ uint8_t config_index, unsigned char *buffer, size_t len);
/* Like get_config_descriptor but then by bConfigurationValue instead
* of by index.
@@ -936,8 +933,7 @@ struct usbi_os_backend {
* or a LIBUSB_ERROR code on failure.
*/
int (*get_config_descriptor_by_value)(struct libusb_device *device,
- uint8_t bConfigurationValue, unsigned char **buffer,
- int *host_endian);
+ uint8_t bConfigurationValue, unsigned char **buffer);
/* Get the bConfigurationValue for the active configuration for a device.
* Optional. This should only be implemented if you can retrieve it from