libusb_open method

int libusb_open(
  1. Pointer<libusb_device> dev,
  2. Pointer<Pointer<libusb_device_handle>> dev_handle
)

Implementation

int libusb_open(
  ffi.Pointer<libusb_device> dev,
  ffi.Pointer<ffi.Pointer<libusb_device_handle>> dev_handle,
) {
  return (_libusb_open ??= _dylib
      .lookupFunction<_c_libusb_open, _dart_libusb_open>('libusb_open'))(
    dev,
    dev_handle,
  );
}