libusb_get_config_descriptor method

int libusb_get_config_descriptor(
  1. Pointer<libusb_device> dev,
  2. int config_index,
  3. Pointer<Pointer<libusb_config_descriptor>> config
)

Implementation

int libusb_get_config_descriptor(
  ffi.Pointer<libusb_device> dev,
  int config_index,
  ffi.Pointer<ffi.Pointer<libusb_config_descriptor>> config,
) {
  return (_libusb_get_config_descriptor ??= _dylib.lookupFunction<
      _c_libusb_get_config_descriptor,
      _dart_libusb_get_config_descriptor>('libusb_get_config_descriptor'))(
    dev,
    config_index,
    config,
  );
}