public int HandleEvents(UsbContext context) { return(libusb_handle_events(context)); }
#pragma warning restore IDE1006 // Naming Styles public int Init(out UsbContext context) { return(libusb_init(out context)); }
/// <summary> /// gets a list of device pointers - must be freed with libusbFreeDeviceList /// </summary> /// <returns>number of devices OR an error code</returns> internal static unsafe extern int libusb_get_device_list(UsbContext ctx, out IntPtr *list);
internal static unsafe extern int libusb_handle_events(UsbContext ctx);
/// <summary> /// called to initialize the device context before any using any libusb functions /// </summary> /// <returns>an error code</returns> internal static extern int libusb_init(out UsbContext ctx);
public unsafe int GetDeviceList(UsbContext context, out IntPtr *deviceList) { return(libusb_get_device_list(context, out deviceList)); }