libusb_get_config_descriptor_by_value method

int libusb_get_config_descriptor_by_value(
  1. Pointer<libusb_device> dev,
  2. int bConfigurationValue,
  3. Pointer<Pointer<libusb_config_descriptor>> config
)

Implementation

int libusb_get_config_descriptor_by_value(
  ffi.Pointer<libusb_device> dev,
  int bConfigurationValue,
  ffi.Pointer<ffi.Pointer<libusb_config_descriptor>> config,
) {
  return (_libusb_get_config_descriptor_by_value ??= _dylib.lookupFunction<
          _c_libusb_get_config_descriptor_by_value,
          _dart_libusb_get_config_descriptor_by_value>(
      'libusb_get_config_descriptor_by_value'))(
    dev,
    bConfigurationValue,
    config,
  );
}