commit | a524555c987fec2c16417d2f58c8713efcbe11a9 | [log] [tgz] |
---|---|---|
author | Nathan Hjelm <hjelmn@google.com> | Sun Jun 06 12:19:05 2021 -0600 |
committer | Nathan Hjelm <hjelmn@google.com> | Mon Jun 07 21:28:44 2021 -0600 |
tree | a189629bded2dfd336de94370e195d7fe9ae34b1 | |
parent | d551802db593436947a2464a7da1020edf0e7b56 [diff] |
core: allow libusb_set_option on the default context before libusb_init This commit updates libusb_set_option to save the options if setting them on the default context. This ensures the options 1) can be set before libusb_init(NULL, ...), and 2) are honored even if the default context is destroyed and re-created. Signed-off-by: Nathan Hjelm <hjelmn@google.com>