core: set default backend options before calling backend init
authorNathan Hjelm <hjelmn@google.com>
Tue, 27 Jul 2021 05:23:12 +0000 (23:23 -0600)
committerNathan Hjelm <hjelmn@google.com>
Tue, 27 Jul 2021 05:23:12 +0000 (23:23 -0600)
commite568db9f722f35b83ec31bbdfd79e7471163ce23
tree288b0e7ac6a691dd08f3bfc322d8f220e210d2a7
parenta25cfe5f1a87c0483218c92c986df20830d4ad8f
core: set default backend options before calling backend init

This commit restores the previous behavior with regards to setting some backend options and
restores the ability to set default context options before libusb_init. None of the backends
use anything set in init in their set_option function so this should be safe with all
backends and options.

References #942

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/core.c
libusb/version_nano.h