Page MenuHomeFreeBSD

libusb: refactor the process of setting option when init the context.
ClosedPublic

Authored by aokblast on Jul 9 2025, 9:42 AM.
Tags
None
Referenced Files
F163189022: D51224.id158213.diff
Mon, Jul 20, 9:40 PM
F163160079: D51224.id160172.diff
Mon, Jul 20, 3:29 PM
Unknown Object (File)
Sun, Jul 19, 1:21 PM
Unknown Object (File)
Wed, Jul 15, 6:38 AM
Unknown Object (File)
Wed, Jul 15, 6:38 AM
Unknown Object (File)
Sat, Jul 11, 8:27 PM
Unknown Object (File)
Thu, Jul 9, 8:52 PM
Unknown Object (File)
Tue, Jul 7, 6:19 PM
Subscribers

Details

Summary

From
https://github.com/libusb/libusb/commit/6622f386f52807dac76c8a260c98aa02c311bc93#diff-c1f9bc250077d41456a3e580fca0ddf5d8c25b741bff6d9b9505990a8b70b254R2358.
We are able to set all of the option from the init_context. To address
this, we modify the process of setting option in init_context to make it be more clear and then
adapat libusb_set_option inside to all other option.

Sponsored By: FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Move the initialization of the options to allow override by the set_option

This revision is now accepted and ready to land.Jun 18 2026, 5:08 AM