core: Make the 'reset_device' function of the backend optional
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 16 Mar 2020 08:15:29 +0000 (01:15 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 16 Mar 2020 08:15:29 +0000 (01:15 -0700)
commite32f1fd7bff3a483ce25717342a50af24b73a0c1
tree6dc8171a1d5fae1d1a5bb584b098ea051c06a952
parent89d574b87976ef58b6c94c26864dcc5330b0c067
core: Make the 'reset_device' function of the backend optional

The majority of backends do not have support for resetting a device, so
simplify them all by making the function optional and having the core
return the appropriate error when the function is not implemented.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/core.c
libusb/libusbi.h
libusb/os/haiku_usb_raw.cpp
libusb/os/netbsd_usb.c
libusb/os/null_usb.c
libusb/os/openbsd_usb.c
libusb/os/sunos_usb.c
libusb/version_nano.h