Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add libusb_init_context and associated structs #209

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

dgramop
Copy link
Contributor

@dgramop dgramop commented Jul 21, 2024

The original libusb_init(...) has been deprecated by libusb. On Android, when using libusb_init() without configuring libusb to skip scanning at context-init time, libusb is prone to crashing.

Added this function to libusb1-sys


#[repr(C)]
pub enum libusb_option {
/** Set the log message verbosity.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you begin copying documentation, I suggest converting it to Rust doc format.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed, and squashed into previous commit, thanks!

@a1ien
Copy link
Owner

a1ien commented Jul 23, 2024

LGTM. But can you please run cargo fmt

@dgramop
Copy link
Contributor Author

dgramop commented Jul 24, 2024

Formatted!

@a1ien a1ien merged commit 8f8c3c6 into a1ien:master Jul 24, 2024
8 checks passed
@a1ien
Copy link
Owner

a1ien commented Jul 24, 2024

LGTM. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants