a1ien / rusb

A safe Rust wrapper for libusb.
Other
382 stars 78 forks source link

Add libusb_free_pollfds in FFI methods #197

Closed kurkpitaine closed 3 months ago

kurkpitaine commented 4 months ago

Since libusb_get_pollfds() is already available in the FFI, this PR adds the libusb_free_pollfds() method from libusb available in the FFI.

Libusb documentation of libusb_free_pollfds() states : "This should be called for all pollfd lists allocated with libusb_get_pollfds()"

a1ien commented 4 months ago

Can you please push as one commit. Other than that looks good to me.