pub unsafe fn libusb_get_string_descriptor(
    dev_handle: *mut libusb_device_handle,
    desc_index: u8,
    langid: u16,
    data: *mut c_uchar,
    length: c_int,
) -> c_int {
    libusb_control_transfer(
        dev_handle,
        LIBUSB_ENDPOINT_IN,
        LIBUSB_REQUEST_GET_DESCRIPTOR,
        u16::from(LIBUSB_DT_STRING) << 8 | u16::from(desc_index),
        langid,
        data,
        length as u16,
        1000,
    )
}
// defined as static inline in libusb.h
defined as static inline in libusb.h
defined as static inline in libusb . h
pub unsafe fn libusb_get_string_descriptor(
    dev_handle: *mut libusb_device_handle,
    desc_index: u8,
    langid: u16,
    data: *mut c_uchar,
    length: c_int,
) -> c_int {
    libusb_control_transfer(
        dev_handle,
        LIBUSB_ENDPOINT_IN,
        LIBUSB_REQUEST_GET_DESCRIPTOR,
        u16::from(LIBUSB_DT_STRING) << 8 | u16::from(desc_index),
        langid,
        data,
        length as u16,
        1000,
    )
}
pub unsafe fn libusb_get_string_descriptor ( dev_handle : * mut libusb_device_handle , desc_index : u8 , langid : u16 , data : * mut c_uchar , length : c_int , ) -> c_int { libusb_control_transfer ( dev_handle , LIBUSB_ENDPOINT_IN , LIBUSB_REQUEST_GET_DESCRIPTOR , u16 :: from ( LIBUSB_DT_STRING ) << 8 | u16 :: from ( desc_index ) , langid , data , length as u16 , 1000 , ) }
defined as static inline in libusb.h
defined as static inline in libusb . h
dev_handle
*mut libusb_device_handle
desc_index
u8
langid
u16
data
*mut c_uchar
length
c_int
dev_handle
*mut libusb_device_handle
desc_index
u8
langid
u16
data
*mut c_uchar
length
c_int