core: Introduce libusb_set_option() API function
authorChris Dickens <christopher.a.dickens@gmail.com>
Tue, 11 Jul 2017 05:37:13 +0000 (22:37 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Sun, 16 Jul 2017 21:02:05 +0000 (14:02 -0700)
commit539f22e2fd916558d11ab9a66f10f461c5593168
tree4f7dc78c39331fa92d201edf95cee1920dbe01d4
parent34987d005ec6a49cef89dde76513db34a4731bae
core: Introduce libusb_set_option() API function

This new function allows more flexibility in extending the library to
support more user-configurable options. It is intended to provide a
single API that can support a wide variety of needs and eliminates the
need for new API functions to set future options.

The function is introduced with a single option (LIBUSB_OPTION_LOG_LEVEL)
that replaces the libusb_set_debug() function. Documentation relating to
libusb_set_debug() and the uses of this function in the examples and
tests have been updated accordingly.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
examples/fxload.c
examples/xusb.c
libusb/core.c
libusb/libusb-1.0.def
libusb/libusb.h
libusb/version_nano.h
tests/stress.c