libusb_get_usb_2_0_extension_descriptor method

int libusb_get_usb_2_0_extension_descriptor(
  1. Pointer<libusb_context> ctx,
  2. Pointer<libusb_bos_dev_capability_descriptor> dev_cap,
  3. Pointer<Pointer<libusb_usb_2_0_extension_descriptor>> usb_2_0_extension
)

Implementation

int libusb_get_usb_2_0_extension_descriptor(
  ffi.Pointer<libusb_context> ctx,
  ffi.Pointer<libusb_bos_dev_capability_descriptor> dev_cap,
  ffi.Pointer<ffi.Pointer<libusb_usb_2_0_extension_descriptor>>
      usb_2_0_extension,
) {
  return (_libusb_get_usb_2_0_extension_descriptor ??= _dylib.lookupFunction<
          _c_libusb_get_usb_2_0_extension_descriptor,
          _dart_libusb_get_usb_2_0_extension_descriptor>(
      'libusb_get_usb_2_0_extension_descriptor'))(
    ctx,
    dev_cap,
    usb_2_0_extension,
  );
}